org.apache.tika.parser.pkg
Class ZipParser

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

public class ZipParser
extends PackageParser

Zip File Parser.


Constructor Summary
ZipParser()
           
 
Method Summary
 void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context)
          Parses the given stream as a Zip file.
 
Methods inherited from class org.apache.tika.parser.pkg.PackageParser
parseArchive
 
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

ZipParser

public ZipParser()
Method Detail

parse

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


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