Overview | Methods | This Package | All Packages
Reads a length-prefixed Unicode string from this stream.
Syntax
public String readString()
Return Value
Returns the string value that was read.
Exceptions
IOException thrown if an I/O error occurs or if the stream does not support reading.
EOFException thrown if the end of the stream is reached while reading the string.
Remarks
This method first reads the length of the string as a 32-bit unsigned integer and then reads that many 16-bit Unicode characters into the string.
See Also writeString