org.apache.poi.hssf.record
Class RecordFactory

java.lang.Object
  |
  +--org.apache.poi.hssf.record.RecordFactory

public class RecordFactory
extends java.lang.Object

Title: Record Factory

Description: Takes a stream and outputs an array of Record objects.

Version:
1.0-pre
Author:
Andrew C. Oliver (acoliver at apache dot org), Marc Johnson (mjohnson at apache dot org), Glen Stampoultzis (glens at apache.org)

Constructor Summary
RecordFactory()
           
 
Method Summary
static Record[] createRecord(short rectype, short size, byte[] data)
           
static java.util.List createRecords(java.io.InputStream in)
          Create an array of records from an input stream
static short[] getAllKnownRecordSIDs()
           
static void setCapacity(int capacity)
          changes the default capacity (10000) to handle larger files
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordFactory

public RecordFactory()
Method Detail

setCapacity

public static void setCapacity(int capacity)
changes the default capacity (10000) to handle larger files

createRecords

public static java.util.List createRecords(java.io.InputStream in)
                                    throws RecordFormatException
Create an array of records from an input stream
Parameters:
in - the InputStream from which the records will be obtained
Returns:
an array of Records created from the InputStream
Throws:
RecordFormatException - on error processing the InputStream

createRecord

public static Record[] createRecord(short rectype,
                                    short size,
                                    byte[] data)

getAllKnownRecordSIDs

public static short[] getAllKnownRecordSIDs()


Copyright © 2002 Apache jakarta-poi project. All Rights Reserved.