org.egothor.analyzer.pdf.nativewrapper
Class PDFParser

java.lang.Object
  extended byorg.egothor.analyzer.pdf.nativewrapper.PDFParser

public class PDFParser
extends java.lang.Object

Version:
0.0.1
Author:
Edmond Nolan

Field Summary
static java.lang.String EGOTHOR_PROPS
          EGOTHOR_PROPS is a constant for "egothor.properties"
static java.lang.String KEY_META
          native.parser.meta.args is the key used to find the argument in $HOME/egothor.properties used to read the pdf meta information using the underlying native parser
static java.lang.String KEY_PARSER
          KEY_PARSER is the key used when reading the $HOME/egothor.properties file to discover the native parsser being used
static java.lang.String PREFIX
          egothor-native-pdf is the prefix used for temp pdf files recreated from the input streams.
static int SLEEP_TIME
          SLEEP_TIME is the number of milliseconds to wait until the HTML file is generated by xpdf
static java.lang.String SUFFIX_HTML
          html is the suffix used for temp html files used to hold the PDF meta information.
static java.lang.String SUFFIX_PDF
          pdf is the suffix used for temp pdf files recreated from the input streams.
static java.lang.String SUFFIX_TXT
          txt is the suffix used for temp txt files used to hold PDF file text contents.
static int SUMMARY_LENGTH
          SUMMARY_LENGTH is the length of the summary in characters
 
Constructor Summary
PDFParser()
           
 
Method Summary
 void deleteTempFiles()
          Delete the files created by createTempFiles()
 java.lang.String getAuthor()
           
 java.lang.String getCreator()
           
 java.lang.String getHTMLFileName()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getKeywords()
           
 PDFMetaInfo getMetainfo()
           
 java.lang.String getNativeProgram()
           
 java.lang.String getProducer()
           
 PropertyManager getPropertyManager()
           
 java.io.Reader getReader()
           
 java.lang.String getSummary()
           
 java.io.File getTempFileHTML()
          Gets the mTempFilePDF attribute of the PDFNativeParser object
 java.io.File getTempFilePDF()
          Gets the mTempFilePDF attribute of the PDFNativeParser object
 java.io.File getTempFileTXT()
          Gets the mTempFileTXT attribute of the PDFNativeParser object
 java.lang.String getTitle()
           
static void main(java.lang.String[] args)
           
 void runProcess(java.lang.String aStr)
           
 void setInputStream(java.io.InputStream aInputStream)
           
 void setMetainfo(PDFMetaInfo metainfo)
           
 void setPropertyManager(PropertyManager propertyManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUMMARY_LENGTH

public static final int SUMMARY_LENGTH
SUMMARY_LENGTH is the length of the summary in characters

See Also:
Constant Field Values

SLEEP_TIME

public static final int SLEEP_TIME
SLEEP_TIME is the number of milliseconds to wait until the HTML file is generated by xpdf

See Also:
Constant Field Values

KEY_META

public static final java.lang.String KEY_META
native.parser.meta.args is the key used to find the argument in $HOME/egothor.properties used to read the pdf meta information using the underlying native parser

See Also:
Constant Field Values

KEY_PARSER

public static final java.lang.String KEY_PARSER
KEY_PARSER is the key used when reading the $HOME/egothor.properties file to discover the native parsser being used

See Also:
Constant Field Values

EGOTHOR_PROPS

public static final java.lang.String EGOTHOR_PROPS
EGOTHOR_PROPS is a constant for "egothor.properties"

See Also:
Constant Field Values

PREFIX

public static final java.lang.String PREFIX
egothor-native-pdf is the prefix used for temp pdf files recreated from the input streams.

See Also:
Constant Field Values

SUFFIX_PDF

public static final java.lang.String SUFFIX_PDF
pdf is the suffix used for temp pdf files recreated from the input streams.

See Also:
Constant Field Values

SUFFIX_TXT

public static final java.lang.String SUFFIX_TXT
txt is the suffix used for temp txt files used to hold PDF file text contents.

See Also:
Constant Field Values

SUFFIX_HTML

public static final java.lang.String SUFFIX_HTML
html is the suffix used for temp html files used to hold the PDF meta information.

See Also:
Constant Field Values
Constructor Detail

PDFParser

public PDFParser()
          throws java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)

getInputStream

public java.io.InputStream getInputStream()

setInputStream

public void setInputStream(java.io.InputStream aInputStream)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getMetainfo

public PDFMetaInfo getMetainfo()

setMetainfo

public void setMetainfo(PDFMetaInfo metainfo)

getPropertyManager

public PropertyManager getPropertyManager()

setPropertyManager

public void setPropertyManager(PropertyManager propertyManager)

deleteTempFiles

public void deleteTempFiles()
Delete the files created by createTempFiles()


getTempFilePDF

public java.io.File getTempFilePDF()
Gets the mTempFilePDF attribute of the PDFNativeParser object

Returns:
The mTempFilePDF value

getTempFileHTML

public java.io.File getTempFileHTML()
                             throws java.io.IOException
Gets the mTempFilePDF attribute of the PDFNativeParser object

Returns:
The mTempFilePDF value
Throws:
java.io.IOException

getTempFileTXT

public java.io.File getTempFileTXT()
Gets the mTempFileTXT attribute of the PDFNativeParser object

Returns:
The mTempFileTXT value

getNativeProgram

public java.lang.String getNativeProgram()

runProcess

public void runProcess(java.lang.String aStr)
                throws java.io.IOException
Throws:
java.io.IOException

getHTMLFileName

public java.lang.String getHTMLFileName()
                                 throws java.io.IOException
Throws:
java.io.IOException

getReader

public java.io.Reader getReader()
                         throws java.io.IOException
Throws:
java.io.IOException

getAuthor

public java.lang.String getAuthor()

getSummary

public java.lang.String getSummary()

getKeywords

public java.lang.String getKeywords()

getProducer

public java.lang.String getProducer()

getTitle

public java.lang.String getTitle()

getCreator

public java.lang.String getCreator()


Copyright © 2004 Egothor Developers. All Rights Reserved. Build date 20050710