org.apache.tika.parser.pkg
Class Bzip2Parser

java.lang.Object
  extended by org.apache.tika.parser.DelegatingParser
      extended by org.apache.tika.parser.pkg.Bzip2Parser
All Implemented Interfaces:
Parser

public class Bzip2Parser
extends DelegatingParser

Bzip2 parser.


Constructor Summary
Bzip2Parser()
           
 
Method Summary
 void parse(java.io.InputStream stream, org.xml.sax.ContentHandler handler, Metadata metadata, ParseContext context)
          Parses the given stream as a bzip2 file.
 
Methods inherited from class org.apache.tika.parser.DelegatingParser
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bzip2Parser

public Bzip2Parser()
Method Detail

parse

public void parse(java.io.InputStream stream,
                  org.xml.sax.ContentHandler handler,
                  Metadata metadata,
                  ParseContext context)
           throws java.io.IOException,
                  org.xml.sax.SAXException,
                  TikaException
Parses the given stream as a bzip2 file.

Specified by:
parse in interface Parser
Overrides:
parse in class DelegatingParser
Parameters:
stream - the document stream (input)
handler - handler for the XHTML SAX events (output)
metadata - document metadata (input and output)
context - parse context
Throws:
java.io.IOException - if the document stream could not be read
org.xml.sax.SAXException - if the SAX events could not be processed
TikaException - if the document could not be parsed


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