int peek ( ) throws IOException { Mark m = mark ( ) ; int ch = next ( ) ; unread ( ch , m ) ; return ch ; }
Returns the next character in the stream without advancing the readers position . If there are no more characters - 1 is returned .