intarsys PDF library API

de.intarsys.pdf.st
Class XRefFallbackParser

java.lang.Object
  extended by de.intarsys.pdf.st.AbstractXRefParser
      extended by 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.


Constructor Summary
XRefFallbackParser(STDocument doc, COSDocumentParser parser)
           
 
Method Summary
 STXRefSection parse(IRandomAccess input)
          Parser the STXRefSection from the randomAccess.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XRefFallbackParser

public XRefFallbackParser(STDocument doc,
                          COSDocumentParser parser)
Method Detail

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

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.