Package java.io
Class RandomAccessFile

Public Method readUTF

final String readUTF()

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

The first two bytes are read, starting from the current file pointer, as if by readUnsignedShort. This value gives the number of following bytes that are in the encoded string, not the length of the resulting string. The following bytes are then interpreted as bytes encoding characters in the UTF-8 format and are converted into characters.

This method blocks until all the bytes are read, the end of the stream is detected, or an exception is thrown.