Package org.apache.tika.parser
Class AbstractParser
java.lang.Object
org.apache.tika.parser.AbstractParser
- All Implemented Interfaces:
Serializable,Parser
- Direct Known Subclasses:
AbstractDBParser,AbstractDWGParser,AbstractEncodingDetectorParser,AbstractExternalProcessParser,AbstractImageParser,AbstractMultipleParser,AbstractOfficeParser,AbstractXML2003Parser,ActiveMimeParser,AdobeFontMetricParser,AgeRecogniser,AmazonTranscribe,AppleSingleFileParser,AudioParser,ChmParser,ClassParser,CompositeParser,CompressorParser,DBFParser,DelegatingParser,DGN8Parser,DIFParser,EMFParser,EmptyParser,EncryptedPrescriptionParser,EpubContentParser,EpubParser,ErrorParser,ExecutableParser,ExternalParser,ExternalParser,FeedParser,FlatOpenDocumentParser,FLVParser,ForkParser,GDALParser,GeographicInformationParser,GeoParser,GribParser,HDFParser,HttpParser,HwpV5Parser,ICNSParser,IDMLParser,IWork13PackageParser,IWork18PackageParser,IWorkPackageParser,JackcessParser,JournalParser,JXLParser,Latin1StringsParser,MatParser,MboxParser,MidiParser,Mp3Parser,MP4Parser,MSOwnerFileParser,NamedEntityParser,NetCDFParser,NetworkParser,ObjectRecognitionParser,OldExcelParser,OneNoteParser,OpenDocumentContentParser,OpenDocumentParser,OutlookPSTParser,ParserDecorator,PDFParser,Pkcs7Parser,PListParser,PooledTimeSeriesParser,PRTParser,PSDParser,QuattroProParser,RarParser,RegexCaptureParser,RFC822Parser,RTFParser,SAS7BDATParser,SentimentAnalysisParser,SQLite3Parser,StringsParser,TMXParser,TNEFParser,TrueTypeParser,TSDParser,UnrarParser,WACZParser,WARCParser,WebPParser,WMFParser,WordPerfectParser,XLIFF12Parser,XLZParser,XMLParser,XMLProfiler
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparse(InputStream stream, ContentHandler handler, Metadata metadata) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tika.parser.Parser
getSupportedTypes, parse
-
Constructor Details
-
AbstractParser
public AbstractParser()
-
-
Method Details
-
parse
public void parse(InputStream stream, ContentHandler handler, Metadata metadata) throws IOException, SAXException, TikaException Deprecated.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:
IOExceptionSAXExceptionTikaException
-
Parser.parse(InputStream, ContentHandler, Metadata, ParseContext)method instead