org.apache.jackrabbit.core.query.pdf
Class PDFParser

java.lang.Object
  extended by org.apache.jackrabbit.core.query.pdf.PDFParser
All Implemented Interfaces:
Serializable, org.apache.tika.parser.Parser

public class PDFParser
extends Object
implements org.apache.tika.parser.Parser

PDF parser.

This parser can process also encrypted PDF documents if the required password is given as a part of the input metadata associated with a document. If no password is given, then this parser will try decrypting the document using the empty password that's often used with PDFs.

See Also:
Serialized Form

Field Summary
static String PASSWORD
          Metadata key for giving the document password to the parser.
 
Constructor Summary
PDFParser()
           
 
Method Summary
 Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
           
 void parse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata)
          Deprecated. This method will be removed in Apache Tika 1.0.
 void parse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PASSWORD

public static final String PASSWORD
Metadata key for giving the document password to the parser.

Since:
Apache Tika 0.5
See Also:
Constant Field Values
Constructor Detail

PDFParser

public PDFParser()
Method Detail

getSupportedTypes

public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
Specified by:
getSupportedTypes in interface org.apache.tika.parser.Parser

parse

public void parse(InputStream stream,
                  ContentHandler handler,
                  org.apache.tika.metadata.Metadata metadata,
                  org.apache.tika.parser.ParseContext context)
           throws IOException,
                  SAXException,
                  org.apache.tika.exception.TikaException
Specified by:
parse in interface org.apache.tika.parser.Parser
Throws:
IOException
SAXException
org.apache.tika.exception.TikaException

parse

public void parse(InputStream stream,
                  ContentHandler handler,
                  org.apache.tika.metadata.Metadata metadata)
           throws IOException,
                  SAXException,
                  org.apache.tika.exception.TikaException
Deprecated. This method will be removed in Apache Tika 1.0.

Specified by:
parse in interface org.apache.tika.parser.Parser
Throws:
IOException
SAXException
org.apache.tika.exception.TikaException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.