IDataStream.readStringNullAnsi

Overview | Methods | This Package | All Packages

IDataStream.readStringNullAnsi

Reads a null-terminated ANSI string from this stream.

Syntax

public String readStringNullAnsi()

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 keeps reading bytes from the stream until a null byte is read. The bytes (excluding the closing null byte) are then converted to a string using the system's default code page.

See Also   writeStringNullAnsi