|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.egothor.analyzer.pdf.nativewrapper.PDFParser
| 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 |
public static final int SUMMARY_LENGTH
SUMMARY_LENGTH is the length of the summary in
characters
public static final int SLEEP_TIME
SLEEP_TIME is the number of milliseconds to wait until
the HTML file is generated by xpdf
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
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
public static final java.lang.String EGOTHOR_PROPS
EGOTHOR_PROPS is a constant for "egothor.properties"
public static final java.lang.String PREFIX
egothor-native-pdf is the prefix used for temp pdf
files recreated from the input streams.
public static final java.lang.String SUFFIX_PDF
pdf is the suffix used for temp pdf
files recreated from the input streams.
public static final java.lang.String SUFFIX_TXT
txt is the suffix used for temp txt
files used to hold PDF file text contents.
public static final java.lang.String SUFFIX_HTML
html is the suffix used for temp html
files used to hold the PDF meta information.
| Constructor Detail |
public PDFParser()
throws java.lang.Exception
| Method Detail |
public static void main(java.lang.String[] args)
public java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream aInputStream)
throws java.lang.Exception
java.lang.Exceptionpublic PDFMetaInfo getMetainfo()
public void setMetainfo(PDFMetaInfo metainfo)
public PropertyManager getPropertyManager()
public void setPropertyManager(PropertyManager propertyManager)
public void deleteTempFiles()
createTempFiles()
public java.io.File getTempFilePDF()
mTempFilePDF attribute of the PDFNativeParser object
public java.io.File getTempFileHTML()
throws java.io.IOException
mTempFilePDF attribute of the PDFNativeParser object
java.io.IOExceptionpublic java.io.File getTempFileTXT()
mTempFileTXT attribute of the PDFNativeParser object
public java.lang.String getNativeProgram()
public void runProcess(java.lang.String aStr)
throws java.io.IOException
java.io.IOException
public java.lang.String getHTMLFileName()
throws java.io.IOException
java.io.IOException
public java.io.Reader getReader()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getAuthor()
public java.lang.String getSummary()
public java.lang.String getKeywords()
public java.lang.String getProducer()
public java.lang.String getTitle()
public java.lang.String getCreator()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||