degu.degudocumentbuilder.ejb
Class FromPDFDocumentBuilder

java.lang.Object
  extended by degu.degudocumentbuilder.ejb.DocumentBuilder
      extended by degu.degudocumentbuilder.ejb.FromPDFDocumentBuilder

public class FromPDFDocumentBuilder
extends DocumentBuilder

Builds an XMLrepresentation out of a PDF file


Field Summary
private static org.apache.log4j.Logger logger
           
 
Fields inherited from class degu.degudocumentbuilder.ejb.DocumentBuilder
jDomDocument, rawDocument, textStrippers
 
Constructor Summary
FromPDFDocumentBuilder(java.util.Vector<TextStripper> textStrippers, RawDocument rawDocument)
           
 
Method Summary
 DeguDocument build()
          Builds a degu document
protected  org.jdom.Element makeTOCElement()
          Extracts the TOC TODO implement the command pattern here (like TextStrippers)
 
Methods inherited from class degu.degudocumentbuilder.ejb.DocumentBuilder
calculateDigestString, initDoc, makeParsedTextElement, makeRawTextElement, setRawDocument, setTextStrippers, stripVoted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Logger logger
Constructor Detail

FromPDFDocumentBuilder

public FromPDFDocumentBuilder(java.util.Vector<TextStripper> textStrippers,
                              RawDocument rawDocument)
Method Detail

build

public DeguDocument build()
                   throws FailedToStripText,
                          DocumentEncryptedException,
                          java.io.IOException
Description copied from class: DocumentBuilder
Builds a degu document

Specified by:
build in class DocumentBuilder
Returns:
Throws:
FailedToStripText
DocumentEncryptedException
java.io.IOException

makeTOCElement

protected org.jdom.Element makeTOCElement()
                                   throws java.io.IOException
Description copied from class: DocumentBuilder
Extracts the TOC TODO implement the command pattern here (like TextStrippers)

Specified by:
makeTOCElement in class DocumentBuilder
Returns:
Throws:
java.io.IOException