public class psParser extends AbstractParser implements Parser
Parser.Failure
Modifier and Type | Field and Description |
---|---|
private static java.lang.Object |
modeScan |
private static boolean |
modeScanDone |
private static java.lang.String |
parserMode |
log, SUPPORTED_EXTENSIONS, SUPPORTED_MIME_TYPES
Constructor and Description |
---|
psParser() |
Modifier and Type | Method and Description |
---|---|
private Document[] |
parse(DigestURL location,
java.lang.String mimeType,
java.lang.String charset,
java.io.File sourceFile) |
Document[] |
parse(DigestURL location,
java.lang.String mimeType,
java.lang.String charset,
VocabularyScraper scraper,
int timezoneOffset,
java.io.InputStream source)
parse an input stream
|
private static void |
parseUsingJava(java.io.File inputFile,
java.io.File outputFile) |
private void |
parseUsingPS2ascii(java.io.File inputFile,
java.io.File outputFile)
This function requires the ghostscript-library
|
private boolean |
testForPs2Ascii() |
equals, getName, hashCode, singleList, supportedExtensions, supportedMimeTypes
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
equals, getName, hashCode, supportedExtensions, supportedMimeTypes
private static final java.lang.Object modeScan
private static boolean modeScanDone
private static java.lang.String parserMode
private boolean testForPs2Ascii()
private Document[] parse(DigestURL location, java.lang.String mimeType, java.lang.String charset, java.io.File sourceFile) throws Parser.Failure, java.lang.InterruptedException
Parser.Failure
java.lang.InterruptedException
private static void parseUsingJava(java.io.File inputFile, java.io.File outputFile) throws java.lang.Exception
java.lang.Exception
private void parseUsingPS2ascii(java.io.File inputFile, java.io.File outputFile) throws java.lang.Exception
inputFile
- outputFile
- java.lang.Exception
public Document[] parse(DigestURL location, java.lang.String mimeType, java.lang.String charset, VocabularyScraper scraper, int timezoneOffset, java.io.InputStream source) throws Parser.Failure, java.lang.InterruptedException
Parser
parse
in interface Parser
location
- the url of the sourcemimeType
- the mime type of the source, if knowncharset
- the charset of the source, if knownscraper
- an entity scraper to detect facets from text annotation contextsource
- a input streamParser.Failure
java.lang.InterruptedException