net.sf.parser4j.parser.service
Class ParserFileReader
java.lang.Object
net.sf.parser4j.parser.service.ParserFileReader
public class ParserFileReader
- extends java.lang.Object
file reader used by parser
- Author:
- luc peuvrier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserFileReader
public ParserFileReader(java.io.Reader reader,
java.lang.String fileName)
ParserFileReader
public ParserFileReader(java.io.File file,
java.lang.String charsetName)
throws java.io.FileNotFoundException,
java.io.UnsupportedEncodingException
- Parameters:
file
- charsetName
- The name of a supported
charset
- Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
getFileName
public java.lang.String getFileName()
getLineNumber
public int getLineNumber()
- Returns:
- the lineNumber
getColumnNumber
public int getColumnNumber()
- Returns:
- the columnNumber
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.
Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.