IDataStream.readStringChars

Overview | Methods | This Package | All Packages

IDataStream.readStringChars

Reads a Unicode string from this stream.

Syntax

public String readStringChars( 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 16-bit Unicode characters from the stream and returns a string containing those characters.

See Also   writeStringChars