jxl
Class WorkbookSettings

java.lang.Object
  |
  +--jxl.WorkbookSettings

public final class WorkbookSettings
extends java.lang.Object

This is a bean which client applications may use to set various advanced workbook properties. Use of this bean is not mandatory, and its absence will merely mean that workbooks will be read/written using the default settings


Field Summary
private  int arrayGrowSize
          The amount of memory allocated to the array containing the workbook data when its current amount is exhausted.
private static int defaultArrayGrowSize
           
private static int defaultInitialFileSize
           
private  int initialFileSize
          The amount of memory allocated to store the workbook data when reading a worksheet.
 
Constructor Summary
WorkbookSettings()
          Default constructor
 
Method Summary
 int getArrayGrowSize()
          Accessor for the array grow size property
 int getInitialFileSize()
          Accessor for the initial file size property
 void setArrayGrowSize(int sz)
          Sets the amount of memory by which to increase the amount of memory allocated to storing the workbook data.
 void setInitialFileSize(int sz)
          Sets the initial amount of memory allocated to store the workbook data when reading a worksheet.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

initialFileSize

private int initialFileSize
The amount of memory allocated to store the workbook data when reading a worksheet. For processeses reading many small workbooks inside a WAS it might be necessary to reduce the default size

arrayGrowSize

private int arrayGrowSize
The amount of memory allocated to the array containing the workbook data when its current amount is exhausted.

defaultInitialFileSize

private static final int defaultInitialFileSize

defaultArrayGrowSize

private static final int defaultArrayGrowSize
Constructor Detail

WorkbookSettings

public WorkbookSettings()
Default constructor
Method Detail

setArrayGrowSize

public void setArrayGrowSize(int sz)
Sets the amount of memory by which to increase the amount of memory allocated to storing the workbook data. For processeses reading many small workbooks inside a WAS it might be necessary to reduce the default size Default value is 1 megabyte
Parameters:
sz - the file size in bytes

getArrayGrowSize

public int getArrayGrowSize()
Accessor for the array grow size property
Returns:
the array grow size

setInitialFileSize

public void setInitialFileSize(int sz)
Sets the initial amount of memory allocated to store the workbook data when reading a worksheet. For processeses reading many small workbooks inside a WAS it might be necessary to reduce the default size Default value is 5 megabytes
Parameters:
sz - the file size in bytes

getInitialFileSize

public int getInitialFileSize()
Accessor for the initial file size property
Returns:
the initial file size