org.apache.tika.parser.pkg
Class GzipParser
java.lang.Object
org.apache.tika.parser.DelegatingParser
org.apache.tika.parser.pkg.GzipParser
- All Implemented Interfaces:
- Parser
public class GzipParser
- extends DelegatingParser
Gzip parser.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GzipParser
public GzipParser()
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.