Object-oriented Parser System
v3.6

scanner
Interface Input

All Known Implementing Classes:
Buffer.InputImpl, ClonedBuffer.InputImpl, ClonedStream.InputImpl, Stream.InputImpl

public interface Input

what an input provider must do.


Method Summary
 Input advance(int nChars)
          advance position within charSequence(); can return this or new object.
 boolean atEnd()
          true at physical end of input.
 CharSequence charSequence()
          available characters.
 int getPosition()
          current position, usually a line number.
 boolean read()
          true if input has been lengthened.
 

Method Detail

getPosition

int getPosition()
current position, usually a line number.


atEnd

boolean atEnd()
              throws IOException
true at physical end of input.

Throws:
IOException

charSequence

CharSequence charSequence()
available characters.


read

boolean read()
             throws IOException
true if input has been lengthened.

Throws:
IOException

advance

Input advance(int nChars)
advance position within charSequence(); can return this or new object.



(c) 2008 Axel T. Schreiner