net.sf.parser4j.parser.service
Class ParserInput

java.lang.Object
  extended by net.sf.parser4j.parser.service.ParserInput

public class ParserInput
extends java.lang.Object

manage parser input

Author:
luc peuvrier

Constructor Summary
ParserInput(ParserFileReader parserFileReader)
           
 
Method Summary
 void close()
           
 int getColumnNumber()
           
 java.lang.String getFileName()
           
 int getLineNumber()
           
 void include(ParserFileReader parserFileReader)
           
 void mark()
          Marks the present position in the input.
 int read()
           
 void reset()
          Resets the input to the most recent mark.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserInput

public ParserInput(ParserFileReader parserFileReader)
            throws ParserException
Throws:
ParserException
Method Detail

read

public int read()
         throws java.io.IOException
Returns:
character read, or -1 if end of file
Throws:
java.io.IOException

close

public void close()

getFileName

public java.lang.String getFileName()

getColumnNumber

public int getColumnNumber()

getLineNumber

public int getLineNumber()

mark

public void mark()
Marks the present position in the input. Subsequent calls to reset() will attempt to reposition the input to this point.


reset

public void reset()
Resets the input to the most recent mark.


include

public void include(ParserFileReader parserFileReader)


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.