Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- java.io.RandomAccessFile
- public int read() throws IOException
- 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.
- Although RandomAccessFile is not a subclass of InputStream, this method behaves in exactly the same way as the InputStream.read() method of InputStream.
- Returns:
- the next byte of data, or -1 if the end of the file has been reached.
- Throws:
- 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