Reads the next character from the input stream.
public int read()
public int read( char[] buffer, int index, int count )
buffer
The character array to read data into.
index
The starting index in the buffer.
count
The number of characters to read.
Returns the next character from the input stream, or returns -1 if no additional characters are available. The second syntax returns the total number of characters read into the buffer. This can be fewer than the number of characters requested if that many characters aren't currently available, or this can be zero if the end of the stream is reached.
IOException thrown if an I/O error occurs or if the stream does not support reading.
WFCInvalidArgumentException thrown if the buffer is null, the index is out of bounds, or the count is out of bounds.
The second syntax for this method reads up to count characters from this Reader object into the buffer array starting at position index.