CharArrayReader class methods in Java

java.io.CharArrayReader

This class implements a character buffer that can be used as a character-input stream.


Some methods of CharArrayReader class.


 close(): This method closes the stream and releases any system resources associated with it.


mark(int): This method marks the present position in the stream.


markSupported(): This method tells whether this stream supports the mark() operation, which it does.


read(): This method reads a single character.


read(char[], int, int): This method reads characters into a portion of an array.


ready(): This method tells whether this stream is ready to be read.


reset(): This method resets the stream to the most recent mark, or to the beginning if it has never been marked.


skip(long): This method skips characters. Returns the number of characters that were skipped.


No comments:

Post a Comment