IDataStream.readStringCharsAnsi

Overview | Methods | This Package | All Packages

IDataStream.readStringCharsAnsi

Reads an American National Standards Institute (ANSI) string from this stream.

Syntax

public String readStringCharsAnsi( int length )

Parameters

length

The number of characters to read.

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 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