org.apache.tika.parser.pkg
Class TarParser

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.TarParser
All Implemented Interfaces:
Parser

public class TarParser
extends PackageParser

Tar parser.


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

TarParser

public TarParser()
Method Detail

parse

public void parse(InputStream stream,
                  ContentHandler handler,
                  Metadata metadata,
                  ParseContext context)
           throws IOException,
                  TikaException,
                  SAXException
Parses the given stream as a tar 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.