net.sf.parser4j.parser.service
Class ParserInput
java.lang.Object
net.sf.parser4j.parser.service.ParserInput
public class ParserInput
- extends java.lang.Object
manage parser input
- Author:
- luc peuvrier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserInput
public ParserInput(ParserFileReader parserFileReader)
throws ParserException
- Throws:
ParserException
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.