org.apache.tika.parser.pkg
Class GzipParser

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

public class GzipParser
extends DelegatingParser

Gzip parser.


Constructor Summary
GzipParser()
           
 
Method Summary
 void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context)
          Parses the given stream as a gzip 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

GzipParser

public GzipParser()
Method Detail

parse

public void parse(InputStream stream,
                  ContentHandler handler,
                  Metadata metadata,
                  ParseContext context)
           throws IOException,
                  SAXException,
                  TikaException
Parses the given stream as a gzip 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:
IOException - if the document stream could not be read
SAXException - if the SAX events could not be processed
TikaException - if the document could not be parsed


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