Reader.peek

Overview | Methods | This Package | All Packages

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.