de.intarsys.pdf.st
Class XRefFallbackParser
java.lang.Object
de.intarsys.pdf.st.AbstractXRefParser
de.intarsys.pdf.st.XRefFallbackParser
public class XRefFallbackParser
- extends AbstractXRefParser
A simple xref rebuilding parser.
The parser reads lines in the document and looks if the line begins with a
object definition, which looks like: number number "obj". Every object
definition found is added as a XRefEntry to the STDocument.
False object definitions can be read and they can cause a problem, if a
real object with the same object number is read after the false one.
On the other side: the document was already broke before this parser was
called.
XRefFallbackParser
public XRefFallbackParser(STDocument doc,
COSDocumentParser parser)
parse
public STXRefSection parse(IRandomAccess input)
throws IOException,
COSLoadException
- Description copied from class:
AbstractXRefParser
- Parser the
STXRefSection
from the randomAccess
.
- Specified by:
parse
in class AbstractXRefParser
- Returns:
- The parsed
STXRefSection
- Throws:
IOException
COSLoadException
Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.