public class AFPParser
extends java.lang.Object
| Constructor and Description |
|---|
AFPParser(AFPParserConfiguration parserConfiguration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static StructuredField |
createSFInstance(StructuredFieldIntroducer sfi) |
void |
error(AFPParserException afpExc)
This method is called by the parser if an error condition is reached by the parser, e.g.
|
long |
getCountReadByte() |
long |
getNrOfSFBuilt()
Returns the total number of structured fields that has been built so far.
|
long |
getNrOfSFBuiltWithErrors()
Returns the number of structured fields that has been built with errrors so far.
|
StructuredField |
parseNextSF()
Call this method to perform the parsing.
|
void |
quitParsing() |
static void |
reload(StructuredField sf) |
public AFPParser(AFPParserConfiguration parserConfiguration)
parserConfiguration - see AFPParserConfigurationpublic static StructuredField createSFInstance(StructuredFieldIntroducer sfi)
public static void reload(StructuredField sf) throws AFPParserException
AFPParserExceptionpublic final StructuredField parseNextSF() throws AFPParserException
AFPParserException.AFPParserExceptionpublic void error(AFPParserException afpExc) throws AFPParserException
AFPParserException. Override this
method in order to handle/ignore exception by your application and continue parsing.AFPParserExceptionpublic long getCountReadByte()
public void quitParsing()
throws AFPParserException
AFPParserExceptionpublic long getNrOfSFBuilt()
public long getNrOfSFBuiltWithErrors()