Home | History | Annotate | Download | only in io

Lines Matching refs:read

46  * input operations read bytes starting at the file pointer and advance
47 * the file pointer past the bytes read. If the random access file is
48 * created in read/write mode, then output operations are also available;
52 * extended. The file pointer can be read by the
58 * read, an {@code EOFException} (which is a kind of
59 * {@code IOException}) is thrown. If any byte cannot be read for
100 * A single tracker to track both read and write. The tracker resets when the operation
107 * Creates a random access file stream to read from, and optionally
120 * as its argument to see if read access to the file is allowed.
139 * {@code checkRead} method denies read access to the file
155 * Creates a random access file stream to read from, and optionally to
202 * argument to see if read access to the file is allowed. If the mode
221 * {@code checkRead} method denies read access to the file
361 * way as the {@link InputStream#read()} method of
369 public int read() throws IOException {
372 return (read(scratch, 0, 1) != -1) ? scratch[0] & 0xff : -1;
377 * @param b the buffer into which the data is read.
379 * @param len the number of bytes to read.
384 ioTracker.trackIo(len, IoTracker.Mode.READ);
385 return IoBridge.read(fd, b, off, len);
395 * same way as the {@link InputStream#read(byte[], int, int)} method of
398 * @param b the buffer into which the data is read.
401 * @param len the maximum number of bytes read.
402 * @return the total number of bytes read into the buffer, or
405 * @exception IOException If the first byte cannot be read for any reason
413 public int read(byte b[], int off, int len) throws IOException {
424 * same way as the {@link InputStream#read(byte[])} method of
427 * @param b the buffer into which the data is read.
428 * @return the total number of bytes read into the buffer, or
431 * @exception IOException If the first byte cannot be read for any reason
436 public int read(byte b[]) throws IOException {
444 * read. This method blocks until the requested number of bytes are
445 * read, the end of the stream is detected, or an exception is thrown.
447 * @param b the buffer into which the data is read.
460 * read. This method blocks until the requested number of bytes are
461 * read, the end of the stream is detected, or an exception is thrown.
463 * @param b the buffer into which the data is read.
465 * @param len the number of bytes to read.
473 int count = this.read(b, off + n, len - n);
579 * at which the next read or write occurs.
594 * file, at which the next read or write occurs. The offset may be
720 * This method blocks until the byte is read, the end of the stream
723 * @return the {@code boolean} value read.
728 int ch = this.read();
737 * If the byte read is {@code b}, where
744 * This method blocks until the byte is read, the end of the stream
753 int ch = this.read();
764 * This method blocks until the byte is read, the end of the stream
773 int ch = this.read();
782 * If the two bytes read, in order, are
790 * This method blocks until the two bytes are read, the end of the
800 int ch1 = this.read();
801 int ch2 = this.read();
810 * If the bytes read, in order, are
818 * This method blocks until the two bytes are read, the end of the
828 int ch1 = this.read();
829 int ch2 = this.read();
838 * If the bytes read, in order, are
846 * This method blocks until the two bytes are read, the end of the
856 int ch1 = this.read();
857 int ch2 = this.read();
866 * If the bytes read, in order, are {@code b1},
874 * This method blocks until the four bytes are read, the end of the
884 int ch1 = this.read();
885 int ch2 = this.read();
886 int ch3 = this.read();
887 int ch4 = this.read();
896 * If the bytes read, in order, are
912 * This method blocks until the eight bytes are read, the end of the
933 * This method blocks until the four bytes are read, the end of the
956 * This method blocks until the eight bytes are read, the end of the
986 * <p> This method blocks until a newline character is read, a carriage
987 * return and the byte following it are read (to see if it is a newline),
991 * of file is encountered before even one byte is read.
1001 switch (c = read()) {
1009 if ((read()) != '\n') {
1031 * The first two bytes are read, starting from the current file
1039 * This method blocks until all the bytes are read, the end of the