Lines Matching defs:read

38  * input operations read bytes starting at the file pointer and advance
39 * the file pointer past the bytes read. If the random access file is
40 * created in read/write mode, then output operations are also available;
44 * extended. The file pointer can be read by the
50 * read, an <code>EOFException</code> (which is a kind of
51 * <code>IOException</code>) is thrown. If any byte cannot be read for
78 * Creates a random access file stream to read from, and optionally
91 * as its argument to see if read access to the file is allowed.
110 * <code>checkRead</code> method denies read access to the file
126 * Creates a random access file stream to read from, and optionally to
173 * argument to see if read access to the file is allowed. If the mode
192 * <code>checkRead</code> method denies read access to the file
297 * opened in read-write mode if the O_RDWR bit in <code>mode</code>
298 * is true, else the file is opened as read-only.
318 * way as the {@link InputStream#read()} method of
326 public int read() throws IOException {
341 * @param b the buffer into which the data is read.
343 * @param len the number of bytes to read.
366 * same way as the {@link InputStream#read(byte[], int, int)} method of
369 * @param b the buffer into which the data is read.
372 * @param len the maximum number of bytes read.
373 * @return the total number of bytes read into the buffer, or
376 * @exception IOException If the first byte cannot be read for any reason
384 public int read(byte b[], int off, int len) throws IOException {
395 * same way as the {@link InputStream#read(byte[])} method of
398 * @param b the buffer into which the data is read.
399 * @return the total number of bytes read into the buffer, or
402 * @exception IOException If the first byte cannot be read for any reason
407 public int read(byte b[]) throws IOException {
415 * read. This method blocks until the requested number of bytes are
416 * read, the end of the stream is detected, or an exception is thrown.
418 * @param b the buffer into which the data is read.
431 * read. This method blocks until the requested number of bytes are
432 * read, the end of the stream is detected, or an exception is thrown.
434 * @param b the buffer into which the data is read.
436 * @param len the number of bytes to read.
444 int count = this.read(b, off + n, len - n);
559 * at which the next read or write occurs.
566 * file, at which the next read or write occurs. The offset may be
658 * This method blocks until the byte is read, the end of the stream
661 * @return the <code>boolean</code> value read.
666 int ch = this.read();
675 * If the byte read is <code>b</code>, where
682 * This method blocks until the byte is read, the end of the stream
691 int ch = this.read();
702 * This method blocks until the byte is read, the end of the stream
711 int ch = this.read();
720 * If the two bytes read, in order, are
728 * This method blocks until the two bytes are read, the end of the
738 int ch1 = this.read();
739 int ch2 = this.read();
748 * If the bytes read, in order, are
756 * This method blocks until the two bytes are read, the end of the
766 int ch1 = this.read();
767 int ch2 = this.read();
776 * If the bytes read, in order, are
784 * This method blocks until the two bytes are read, the end of the
794 int ch1 = this.read();
795 int ch2 = this.read();
804 * If the bytes read, in order, are <code>b1</code>,
812 * This method blocks until the four bytes are read, the end of the
822 int ch1 = this.read();
823 int ch2 = this.read();
824 int ch3 = this.read();
825 int ch4 = this.read();
834 * If the bytes read, in order, are
850 * This method blocks until the eight bytes are read, the end of the
871 * This method blocks until the four bytes are read, the end of the
894 * This method blocks until the eight bytes are read, the end of the
924 * <p> This method blocks until a newline character is read, a carriage
925 * return and the byte following it are read (to see if it is a newline),
929 * of file is encountered before even one byte is read.
939 switch (c = read()) {
947 if ((read()) != '\n') {
969 * The first two bytes are read, starting from the current file
977 * This method blocks until all the bytes are read, the end of the