org.egothor.analyzer.doc
Class DocParser

java.lang.Object
  extended byorg.egothor.analyzer.doc.DocParser
All Implemented Interfaces:
org.apache.poi.poifs.eventfilesystem.POIFSReaderListener

public class DocParser
extends java.lang.Object
implements org.apache.poi.poifs.eventfilesystem.POIFSReaderListener

This class is part of the Egothor Project

Author:
Edmond Nolan

Field Summary
protected  byte[] mBuffer
          Description of the Field
protected  java.lang.String mFileContents
          Holds the documents text contents
protected  java.io.InputStream mInputStream
          Description of the Field
protected  org.apache.poi.poifs.eventfilesystem.POIFSReader mReader
          Description of the Field
protected  java.lang.String mTitle
          Holds the documents title
protected  org.apache.poi.hdf.extractor.WordDocument mWordDocument
          Description of the Field
static int TITLE_LENGTH
          Description of the Field
 
Constructor Summary
DocParser()
          Constructor for the DocParser object
 
Method Summary
 byte[] getBuffer()
          Gets the buffer attribute of the DocParser object
 java.lang.String getFileContents()
          Gets the fileContents attribute of the DocParser object
 java.io.InputStream getInputStream()
          Gets the InputStream attribute of the DocParser object
 java.io.Reader getReader()
          Gets the reader attribute of the DocParser object
 java.lang.String getTitle()
          Gets the title attribute of the DocParser object
static void main(java.lang.String[] args)
          The main program for the DocParser class
 void processPOIFSReaderEvent(org.apache.poi.poifs.eventfilesystem.POIFSReaderEvent aEvent)
          Description of the Method
 void setInputStream(java.io.InputStream aInputStream)
          Sets the inputStream attribute of the DocParser object
protected  void setTitle(java.lang.String aTitle)
          Sets the title attribute of the DocParser object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE_LENGTH

public static final int TITLE_LENGTH
Description of the Field

See Also:
Constant Field Values

mInputStream

protected java.io.InputStream mInputStream
Description of the Field


mBuffer

protected byte[] mBuffer
Description of the Field


mWordDocument

protected org.apache.poi.hdf.extractor.WordDocument mWordDocument
Description of the Field


mReader

protected org.apache.poi.poifs.eventfilesystem.POIFSReader mReader
Description of the Field


mFileContents

protected java.lang.String mFileContents
Holds the documents text contents


mTitle

protected java.lang.String mTitle
Holds the documents title

Constructor Detail

DocParser

public DocParser()
Constructor for the DocParser object

Method Detail

setInputStream

public void setInputStream(java.io.InputStream aInputStream)
                    throws java.lang.Exception
Sets the inputStream attribute of the DocParser object

Parameters:
aInputStream - The new inputStream value
Throws:
java.lang.Exception - Description of the Exception

setTitle

protected void setTitle(java.lang.String aTitle)
Sets the title attribute of the DocParser object

Parameters:
aTitle - The new title value

getBuffer

public byte[] getBuffer()
Gets the buffer attribute of the DocParser object

Returns:
The buffer value

getFileContents

public java.lang.String getFileContents()
Gets the fileContents attribute of the DocParser object

Returns:
The fileContents value

getInputStream

public java.io.InputStream getInputStream()
Gets the InputStream attribute of the DocParser object

Returns:
The InputStream value

getReader

public java.io.Reader getReader()
Gets the reader attribute of the DocParser object

Returns:
The reader value

getTitle

public java.lang.String getTitle()
Gets the title attribute of the DocParser object

Returns:
The title value

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
The main program for the DocParser class

Parameters:
args - The command line arguments
Throws:
java.lang.Exception - Description of the Exception

processPOIFSReaderEvent

public void processPOIFSReaderEvent(org.apache.poi.poifs.eventfilesystem.POIFSReaderEvent aEvent)
Description of the Method

Specified by:
processPOIFSReaderEvent in interface org.apache.poi.poifs.eventfilesystem.POIFSReaderListener
Parameters:
aEvent - Description of the Parameter


Copyright © 2004 Egothor Developers. All Rights Reserved. Build date 20050710