Package org.apache.tika.parser
Class AbstractParser
- java.lang.Object
-
- org.apache.tika.parser.AbstractParser
-
- All Implemented Interfaces:
java.io.Serializable,Parser
- Direct Known Subclasses:
AbstractEncodingDetectorParser,AbstractOfficeParser,AbstractXML2003Parser,AdobeFontMetricParser,AppleSingleFileParser,AudioParser,BPGParser,ChmParser,ClassParser,CompositeParser,CompressorParser,DBFParser,DelegatingParser,DIFParser,DWGParser,EMFParser,EmptyParser,EpubContentParser,EpubParser,ErrorParser,ExecutableParser,ExternalParser,FeedParser,FLVParser,ForkParser,GDALParser,GeographicInformationParser,GeoParser,GribParser,HDFParser,ICNSParser,ImageParser,IWork13PackageParser,IWork18PackageParser,IWorkPackageParser,JackcessParser,JournalParser,JpegParser,Latin1StringsParser,MatParser,MboxParser,MidiParser,Mp3Parser,MP4Parser,MSOwnerFileParser,NamedEntityParser,NetCDFParser,NetworkParser,ObjectRecognitionParser,OldExcelParser,OpenDocumentContentParser,OpenDocumentParser,OutlookPSTParser,PackageParser,ParserDecorator,PDFParser,Pkcs7Parser,PooledTimeSeriesParser,PRTParser,PSDParser,QuattroProParser,RarParser,RFC822Parser,RTFParser,SentimentAnalysisParser,SQLite3Parser,StringsParser,TesseractOCRParser,TiffParser,TNEFParser,TrueTypeParser,TSDParser,WebPParser,WMFParser,WordPerfectParser,XMLParser,XMLProfiler
public abstract class AbstractParser extends java.lang.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
Constructors Constructor Description AbstractParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidparse(java.io.InputStream stream, org.xml.sax.ContentHandler handler, Metadata metadata)Deprecated.use theParser.parse(InputStream, ContentHandler, Metadata, ParseContext)method instead-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.tika.parser.Parser
getSupportedTypes, parse
-
-
-
-
Method Detail
-
parse
public void parse(java.io.InputStream stream, org.xml.sax.ContentHandler handler, Metadata metadata) throws java.io.IOException, org.xml.sax.SAXException, TikaExceptionDeprecated.use theParser.parse(InputStream, ContentHandler, Metadata, ParseContext)method insteadCalls theParser.parse(InputStream, ContentHandler, Metadata, ParseContext)method with an emptyParseContext. This method exists as a leftover from Tika 0.x when the three-argument parse() method still existed in theParserinterface. No new code should call this method anymore, it's only here for backwards compatibility.- Throws:
java.io.IOExceptionorg.xml.sax.SAXExceptionTikaException
-
-