org.apache.tika.parser.chm
Class CHMDocumentInformation

java.lang.Object
  extended by org.apache.tika.parser.chm.CHMDocumentInformation

public class CHMDocumentInformation
extends Object

Extracts text and metadata from chm file


Constructor Summary
CHMDocumentInformation()
           
 
Method Summary
 void getCHMDocInformation(Metadata metadata)
          Returns chm metadata
 String getText()
          Returns extracted text from chm file
static CHMDocumentInformation load(InputStream is)
          Loads chm file as input stream and returns a new instance of chm doc info
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CHMDocumentInformation

public CHMDocumentInformation()
Method Detail

load

public static CHMDocumentInformation load(InputStream is)
                                   throws TikaException,
                                          IOException
Loads chm file as input stream and returns a new instance of chm doc info

Parameters:
is - InputStream
Returns:
chm document information
Throws:
TikaException
IOException

getCHMDocInformation

public void getCHMDocInformation(Metadata metadata)
                          throws TikaException,
                                 IOException
Returns chm metadata

Parameters:
metadata -
Throws:
TikaException
IOException

getText

public String getText()
               throws TikaException
Returns extracted text from chm file

Returns:
text
Throws:
TikaException

main

public static void main(String[] args)


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