net.sf.parser4j.parser.service
Class ParserFileReader

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

public class ParserFileReader
extends java.lang.Object

file reader used by parser

Author:
luc peuvrier

Constructor Summary
ParserFileReader(java.io.File file, java.lang.String charsetName)
           
ParserFileReader(java.io.Reader reader, java.lang.String fileName)
           
 
Method Summary
 void close()
           
 int getColumnNumber()
           
 java.lang.String getFileName()
           
 int getLineNumber()
           
 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

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
Method Detail

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.