Lines Matching refs:read

29  * needs to be subclassed, and at least the {@link #read(char[], int, int)} and
81 * indicates how many characters can be read before the mark is invalidated.
89 * the number of characters that can be read before the mark is
118 * @return the character read or -1 if the end of the reader has been
123 public int read() throws IOException {
126 if (read(charArray, 0, 1) != -1) {
136 * actually read or -1 if the end of the reader has been reached.
139 * character array to store the characters read.
140 * @return the number of characters read or -1 if the end of the reader has
145 public int read(char[] buf) throws IOException {
149 return read(buf, 0, buf.length);
155 * of characters actually read or -1 if the end of the reader has been
159 * the character array to store the characters read.
162 * read from this reader.
164 * the maximum number of characters to read.
165 * @return the number of characters read or -1 if the end of the reader has
170 public abstract int read(char[] buf, int offset, int count)
177 * Indicates whether this reader is ready to be read without blocking.
178 * Returns {@code true} if this reader will not block when {@code read} is
185 * @see #read()
186 * @see #read(char[])
187 * @see #read(char[], int, int)
195 * Invocations of {@code read()} and {@code skip()} will occur from this new
211 * {@code read} methods will not return these characters unless {@code
212 * reset()} is used. This method may perform multiple reads to read {@code
235 int read = read(charsSkipped, 0, toRead);
236 if (read == -1) {
239 skipped += read;
240 if (read < toRead) {
257 * of this reader has been reached before a character has been read.
263 * if {@code target} is read-only.
265 public int read(CharBuffer target) throws IOException {
271 length = Math.min(length, read(buf));