Microsoft SDK for Java

StringReader.peek

Retrieves the next available character without actually reading it from the underlying string.

Syntax

public int peek()

Return Value

Returns the next character to be read, or returns -1 if no further characters are available.

Remarks

The current position of the TextReader is not changed by this operation.

Overrides   Reader.peek

© 1999 Microsoft Corporation. All rights reserved. Terms of use.