org.apache.tika.parser
Class AbstractParser

java.lang.Object
  extended by org.apache.tika.parser.AbstractParser
All Implemented Interfaces:
Serializable, Parser
Direct Known Subclasses:
AdobeFontMetricParser, AudioParser, ChmParser, ClassParser, CompositeParser, DelegatingParser, DWGParser, EmptyParser, EpubContentParser, EpubParser, ErrorParser, ExternalParser, FeedParser, FLVParser, ForkParser, HDFParser, HtmlParser, ImageParser, IWorkPackageParser, JpegParser, MboxParser, MidiParser, Mp3Parser, MP4Parser, NetCDFParser, NetworkParser, OfficeParser, OOXMLParser, OpenDocumentContentParser, OpenDocumentParser, PackageParser, ParserDecorator, PDFParser, PRTParser, PSDParser, RFC822Parser, RTFParser, TiffParser, TNEFParser, TrueTypeParser, TXTParser, XMLParser

public abstract class AbstractParser
extends Object
implements Parser

Abstract base class for new parsers. This method implements the old deprecated parse method so subclasses won't have to.

Since:
Apache Tika 0.10
See Also:
Serialized Form

Constructor Summary
AbstractParser()
           
 
Method Summary
 void parse(InputStream stream, ContentHandler handler, Metadata metadata)
          Deprecated. use the Parser.parse(InputStream, ContentHandler, Metadata, ParseContext) method instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tika.parser.Parser
getSupportedTypes, parse
 

Constructor Detail

AbstractParser

public AbstractParser()
Method Detail

parse

public void parse(InputStream stream,
                  ContentHandler handler,
                  Metadata metadata)
           throws IOException,
                  SAXException,
                  TikaException
Deprecated. use the Parser.parse(InputStream, ContentHandler, Metadata, ParseContext) method instead

Calls the Parser.parse(InputStream, ContentHandler, Metadata, ParseContext) method with an empty ParseContext. This method exists as a leftover from Tika 0.x when the three-argument parse() method still existed in the Parser interface. No new code should call this method anymore, it's only here for backwards compatibility.

Throws:
IOException
SAXException
TikaException


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.