Microsoft SDK for Java

Reader.peek

Retrieves the next available character from the input stream without actually reading it.

Syntax

public int peek()

Return Value

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

Remarks

This operation does not change the current position of the Reader object. This default method returns -1.

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