Java_ IO stream_ abstract class

< p align = "left" > I concept

III Character stream and byte stream and file

  1. Byte stream

Input stream

Output stream

< / td > < td > < p align = "left" > close() closes this output stream and releases all system resources related to this stream.

< / td > < td > < p align = "left" > flush() flushes this output stream and forces all buffered output bytes to be written out.

< / td > < td > < p align = "left" > write (byte [] b) writes b.length bytes from the specified byte array to this output stream.

< / td > < td > < p align = "left" > write (byte [] B, int len) writes len bytes from the offset off in the specified byte array to this output stream.

< / td > < td > < p align = "left" > write (int b) writes the specified bytes to this output stream.

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > void < / td > < td > mark (int readaheadlimit) marks the current position in the stream

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > Boolean < / td > < td > marksupported() determines whether this flow supports mark() operation

翻译错误 Invalid Access Limit

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > int < / td > < td > read (char [] cbuf) reads characters into the array

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > Abstract int < / td > < td > read (char [] cbuf, int len) reads characters into a part of the array

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > int < / td > < td > read (< a title = "class in Java. NiO" > charbuffer target) attempts to read characters into the specified character buffer

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > Boolean < / td > < td > ready() determines whether to read this stream

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > void < / td > < td > reset() resets the flow

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > long < / td > < td > skip (long n) skip characters

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > < a title = "class in Java. IO" > writer < / td > < td > append (< a title = "interface in Java. Lang" > charsequence CSQ) adds the specified character sequence to this writer

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > < a title = "class in Java. IO" > writer < / td > < td > append (< a title = "interface in Java. Lang" > charsequence CSQ, int start, int end) add the subsequence of the specified character sequence to this writer Appendable。

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > Abstract void < / td > < td > close() close this flow, but refresh it first

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > Abstract void < / td > < td > flush() flushes the buffer of the stream

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > void < / td > < td > write (char [] cbuf) writes to the character array

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > Abstract void < / td > < td > write (char [] cbuf, int len) writes to a part of the character array

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > void < / td > < td > write (int c) writes a single character

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > void < / td > < td > write (< a title = "class in Java. Lang" > string STR) writes a string

< / TR > < tr class = "tablerowcolor" bgcolor = "white" > < TD align = "right" valign = "top" width = "1%" > void < / td > < td > write (< a title = "class in Java. Lang" > string STR, int len) writes to a part of the string

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>