jxl.biff
Class BaseCompoundFile.PropertyStorage

java.lang.Object
  extended byjxl.biff.BaseCompoundFile.PropertyStorage
Enclosing class:
BaseCompoundFile

public class BaseCompoundFile.PropertyStorage
extends java.lang.Object

Inner class to represent the property storage sets. Access is public to allow access from the PropertySetsReader demo utility


Field Summary
 int child
          The child for this property set
 int colour
          The colour of the property set
 byte[] data
          The data that created this set
 java.lang.String name
          The name of this property set
 int next
          The next property set
 int previous
          The previous property set
 int size
          The size, in bytes, of this property set
 int startBlock
          The block number in the stream which this property sets starts at
 int type
          The type of the property set
 
Constructor Summary
BaseCompoundFile.PropertyStorage(byte[] d)
          Constructs a property set
BaseCompoundFile.PropertyStorage(java.lang.String name)
          Constructs an empty property set.
 
Method Summary
 void setChild(int dir)
          Sets the child
 void setColour(int col)
          Sets the colour
 void setNext(int nxt)
          Sets the next block
 void setPrevious(int prev)
          Sets the previous block
 void setSize(int s)
          Sets the size of the file
 void setStartBlock(int sb)
          Sets the number of the start block
 void setType(int t)
          Sets the type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The name of this property set


type

public int type
The type of the property set


colour

public int colour
The colour of the property set


startBlock

public int startBlock
The block number in the stream which this property sets starts at


size

public int size
The size, in bytes, of this property set


previous

public int previous
The previous property set


next

public int next
The next property set


child

public int child
The child for this property set


data

public byte[] data
The data that created this set

Constructor Detail

BaseCompoundFile.PropertyStorage

public BaseCompoundFile.PropertyStorage(byte[] d)
Constructs a property set

Parameters:
d - the bytes

BaseCompoundFile.PropertyStorage

public BaseCompoundFile.PropertyStorage(java.lang.String name)
Constructs an empty property set. Used when writing the file

Parameters:
name - the property storage name
Method Detail

setType

public void setType(int t)
Sets the type

Parameters:
t - the type

setStartBlock

public void setStartBlock(int sb)
Sets the number of the start block

Parameters:
sb - the number of the start block

setSize

public void setSize(int s)
Sets the size of the file

Parameters:
s - the size

setPrevious

public void setPrevious(int prev)
Sets the previous block

Parameters:
prev - the previous block

setNext

public void setNext(int nxt)
Sets the next block

Parameters:
nxt - the next block

setChild

public void setChild(int dir)
Sets the child

Parameters:
dir - the child

setColour

public void setColour(int col)
Sets the colour

Parameters:
col - colour