Reads a null-terminated Unicode string from this stream.
public String readStringNull()
Returns the string value that was read.
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.
This method keeps reading 16-bit Unicode characters from the stream until a null character is read. The characters (excluding the terminating null character) are then converted to a string.
See Also writeStringNull