org.egothor.analyzer.xls
Class XLSParser

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

public class XLSParser
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  java.lang.String mBackupTitle
          Description of the Field
protected  byte[] mBuffer
          mBuffer will hold the first MAX_BYTES bytes of whatever is in the stream mInputStream, the contents of this buffer will be stored as a string in mFileContents
protected  org.apache.poi.poifs.filesystem.POIFSFileSystem mFileSystem
          Description of the Field
protected  java.io.InputStream mInputStream
          Description of the Field
protected  org.apache.poi.poifs.eventfilesystem.POIFSReader mPOIFSReader
          Description of the Field
protected  java.util.Vector mReaderVector
          Description of the Field
protected  java.io.FileInputStream mStream
          Description of the Field
protected  java.lang.String mTitle
          Description of the Field
protected  org.apache.poi.hssf.usermodel.HSSFWorkbook mWorkBook
          Description of the Field
static int TITLE_LENGTH
          Description of the Field
 
Constructor Summary
XLSParser()
           
 
Method Summary
 byte[] getBuffer()
          Gets the buffer attribute of the XLSParser object
 java.io.Reader getReader()
          Gets the reader attribute of the XLSParser object
 java.io.Reader getReader(int aReader)
          Gets the reader attribute of the XLSParser object
 java.util.Enumeration getReaders()
          Gets the readers attribute of the XLSParser object
protected  java.util.Vector getReaderVector()
          Gets the readerVector attribute of the XLSParser object
 java.lang.String getTitle()
          Gets the title attribute of the XLSParser object
protected  org.apache.poi.hssf.usermodel.HSSFWorkbook getWorkBook()
          Gets the workBook attribute of the XLSParser object
static void main(java.lang.String[] args)
          The main program for the XLSParser class
 void processPOIFSReaderEvent(org.apache.poi.poifs.eventfilesystem.POIFSReaderEvent aEvent)
          Description of the Method
 void setInputStream(java.io.InputStream aInputStream)
           
protected  void setTitle(java.lang.String aTitle)
          Sets the title attribute of the XLSParser 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

mReaderVector

protected java.util.Vector mReaderVector
Description of the Field


mStream

protected java.io.FileInputStream mStream
Description of the Field


mFileSystem

protected org.apache.poi.poifs.filesystem.POIFSFileSystem mFileSystem
Description of the Field


mWorkBook

protected org.apache.poi.hssf.usermodel.HSSFWorkbook mWorkBook
Description of the Field


mPOIFSReader

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


mTitle

protected java.lang.String mTitle
Description of the Field


mInputStream

protected java.io.InputStream mInputStream
Description of the Field


mBackupTitle

protected java.lang.String mBackupTitle
Description of the Field


mBuffer

protected byte[] mBuffer
mBuffer will hold the first MAX_BYTES bytes of whatever is in the stream mInputStream, the contents of this buffer will be stored as a string in mFileContents

Constructor Detail

XLSParser

public XLSParser()
Method Detail

setInputStream

public void setInputStream(java.io.InputStream aInputStream)
                    throws java.io.IOException
Parameters:
aInputStream - The new inputStream value
Throws:
java.io.IOException - Description of the Exception

setTitle

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

Parameters:
aTitle - The new title value

getBuffer

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

Returns:
The buffer value

getReader

public java.io.Reader getReader(int aReader)
Gets the reader attribute of the XLSParser object

Parameters:
aReader - Description of the Parameter
Returns:
The reader value

getReader

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

Returns:
The reader value

getReaders

public java.util.Enumeration getReaders()
Gets the readers attribute of the XLSParser object

Returns:
The readers value

getTitle

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

Returns:
The title value

getReaderVector

protected java.util.Vector getReaderVector()
Gets the readerVector attribute of the XLSParser object

Returns:
The readerVector value

getWorkBook

protected org.apache.poi.hssf.usermodel.HSSFWorkbook getWorkBook()
Gets the workBook attribute of the XLSParser object

Returns:
The workBook value

main

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

Parameters:
args - The command line arguments

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