日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產(chǎn)品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSFilterWriter

FilterWriter

錦州網(wǎng)站制作公司哪家好,找成都創(chuàng)新互聯(lián)!從網(wǎng)頁設計、網(wǎng)站建設、微信開發(fā)、APP開發(fā)、成都響應式網(wǎng)站建設公司等網(wǎng)站項目制作,到程序開發(fā),運營維護。成都創(chuàng)新互聯(lián)于2013年創(chuàng)立到現(xiàn)在10年的時間,我們擁有了豐富的建站經(jīng)驗和運維經(jīng)驗,來保證我們的工作的順利進行。專注于網(wǎng)站建設就選成都創(chuàng)新互聯(lián)。

java.lang.Object

|---java.io.Writer

|---|---java.io.FilterWriter

public abstract class FilterWriter
extends Writer

用于編寫過濾字符流的抽象類。 抽象類 FilterWriter 本身提供了將所有請求傳遞給包含的流的默認方法。 FilterWriter 的子類應該覆蓋其中的一些方法,并且還可以提供額外的方法和字段。

Since:

JDK1.1

字段摘要

修飾符和類型 字段 描述
protected Writer out 底層字符輸出流。
從類 java.io.Writer 繼承的字段
lock

構造函數(shù)摘要

修飾符 構造函數(shù) 描述
protected FilterWriter(Writer out) 創(chuàng)建一個新的過濾 writer。

方法總結

修飾符和類型 方法 描述
void close() 關閉流,首先刷新它。
void flush() 沖洗流。
void write(char[] cbuf, int off, int len) 寫入字符數(shù)組的一部分。
void write(int c) 寫入單個字符。
void write(String str, int off, int len) 寫入字符串的一部分。
從類 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
從類 java.io.Writer 繼承的方法
append, append, append, write, write

字段詳細信息

out

protected Writer out

底層字符輸出流。

構造函數(shù)詳細信息

FilterWriter

protected FilterWriter(Writer out)

創(chuàng)建一個新的過濾 writer。

參數(shù):

參數(shù)名稱 參數(shù)描述
out 提供底層流的 Writer 對象。

Throws:

Throw名稱 Throw描述
NullPointerException 如果 out 為空

方法詳情

write

public void write(int c) throws IOException

寫入單個字符。

覆蓋:

在 Writer 類中寫

參數(shù):

參數(shù)名稱 參數(shù)描述
c int 指定要寫入的字符

Throws:

Throw名稱 Throw描述
IOException 如果發(fā)生 I/O 錯誤

write

public void write(char[] cbuf, int off, int len) throws IOException

寫入字符數(shù)組的一部分。

指定者:

在 Writer 類中寫

參數(shù):

參數(shù)名稱 參數(shù)描述
cbuf 要寫入的字符緩沖區(qū)
off 開始讀取字符的偏移量
len 要寫入的字符數(shù)

Throws:

Throw名稱 Throw描述
IOException 如果發(fā)生 I/O 錯誤

write

public void write(String str, int off, int len) throws IOException

寫入字符串的一部分。

覆蓋:

在 Writer 類中寫

參數(shù):

參數(shù)名稱 參數(shù)描述
str 要寫入的字符串
off 開始讀取字符的偏移量
len 要寫入的字符數(shù)

Throws:

Throw名稱 Throw描述
IOException 如果發(fā)生 I/O 錯誤

flush

public void flush() throws IOException

沖洗流。

指定者:

在接口 Flushable 中刷新

指定者:

在 Writer 類中刷新

Throws:

Throw名稱 Throw描述
IOException 如果發(fā)生 I/O 錯誤

close

public void close() throws IOException

從班級復制的描述:Writer

關閉流,首先刷新它。 一旦流被關閉,進一步的 write() 或 flush() 調用將導致拋出 IOException。 關閉以前關閉的流沒有效果。

指定者:

在接口 AutoCloseable 中關閉

指定者:

在接口Closeable中關閉

指定者:

close in class Writer

Throws:

Throw名稱 Throw描述
IOException 如果發(fā)生 I/O 錯誤

新聞標題:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSFilterWriter
URL分享:http://m.5511xx.com/article/djpjhop.html