| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.poifs.storage.PropertyBlock
public final class PropertyBlock
A block of Property instances
| Field Summary | |
|---|---|
| protected  POIFSBigBlockSize | bigBlockSizeEither 512 bytes ( POIFSConstants.SMALLER_BIG_BLOCK_SIZE) 
  or 4096 bytes (POIFSConstants.LARGER_BIG_BLOCK_SIZE) | 
| Method Summary | |
|---|---|
| static BlockWritable[] | createPropertyBlockArray(POIFSBigBlockSize bigBlockSize,
                         java.util.List<Property> properties)Create an array of PropertyBlocks from an array of Property instances, creating empty Property instances to make up any shortfall | 
| protected  void | doWriteData(java.io.OutputStream stream,
            byte[] data)Default implementation of write for extending classes that contain their data in a simple array of bytes. | 
|  void | writeBlocks(java.io.OutputStream stream)Write the storage to an OutputStream | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected POIFSBigBlockSize bigBlockSize
POIFSConstants.SMALLER_BIG_BLOCK_SIZE) 
  or 4096 bytes (POIFSConstants.LARGER_BIG_BLOCK_SIZE)
| Method Detail | 
|---|
public static BlockWritable[] createPropertyBlockArray(POIFSBigBlockSize bigBlockSize,
                                                       java.util.List<Property> properties)
properties - the Property instances to be converted into
                   PropertyBlocks, in a java List
protected void doWriteData(java.io.OutputStream stream,
                           byte[] data)
                    throws java.io.IOException
stream - the OutputStream to which the data should be
               written.data - the byte array of to be written.
java.io.IOException - on problems writing to the specified
            stream.
public void writeBlocks(java.io.OutputStream stream)
                 throws java.io.IOException
writeBlocks in interface BlockWritablestream - the OutputStream to which the stored data should
               be written
java.io.IOException - on problems writing to the specified
            stream| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||