Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. java.​io.​RandomAccessFile
  2. public int read() throws IOException
  3. Reads a byte of data from this file. The byte is returned as an integer in the range 0 to 255 (0x00-0x0ff). This method blocks if no input is yet available.
  4. Although RandomAccessFile is not a subclass of InputStream, this method behaves in exactly the same way as the InputStream.read() method of InputStream.
  5. Returns:
  6. the next byte of data, or -1 if the end of the file has been reached.
  7. Throws:
  8. IOException - if an I/O error occurs. Not thrown if end-of-file has been reached.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement