Reads an American National Standards Institute (ANSI) string from this stream.
public String readStringCharsAnsi( int length )
length
The number of characters to read.
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 reads length bytes from the stream and converts those bytes to a Unicode string using the system's default code page. The length of the resulting string is a function of the code page and can be less than the number of bytes read from the stream.
See Also writeStringCharsAnsi