org.apache.tika.parser.chm
Class CHMDocumentInformation

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

public class CHMDocumentInformation
extends java.lang.Object

Extracts text and metadata from chm file


Constructor Summary
CHMDocumentInformation()
           
 
Method Summary
 void getCHMDocInformation(Metadata metadata)
          Returns chm metadata
 java.lang.String getText()
          Returns extracted text from chm file
static CHMDocumentInformation load(java.io.InputStream is)
          Loads chm file as input stream and returns a new instance of chm doc info
static void main(java.lang.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(java.io.InputStream is)
                                   throws TikaException,
                                          java.io.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
java.io.IOException

getCHMDocInformation

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

Parameters:
metadata -
Throws:
TikaException
java.io.IOException

getText

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

Returns:
text
Throws:
TikaException

main

public static void main(java.lang.String[] args)


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