org.apache.poi.hsmf.datatypes
Class ByteChunk

java.lang.Object
  extended by org.apache.poi.hsmf.datatypes.Chunk
      extended by org.apache.poi.hsmf.datatypes.ByteChunk

public class ByteChunk
extends Chunk

A Chunk made up of a ByteArrayOutputStream.


Field Summary
 
Fields inherited from class org.apache.poi.hsmf.datatypes.Chunk
chunkId, namePrefix, type
 
Constructor Summary
ByteChunk(int chunkId, boolean newStyleString)
          Creates a Byte Chunk, for either the old or new style of string chunk types.
ByteChunk(int chunkId, int type)
          Create a Byte Chunk, with the specified type.
 
Method Summary
 java.io.ByteArrayOutputStream getValueByteArray()
          Gets a reference to a ByteArrayOutputStream that contains the value of this chunk.
 void setValue(java.io.ByteArrayOutputStream value)
          Sets the value of this chunk using a OutputStream
 
Methods inherited from class org.apache.poi.hsmf.datatypes.Chunk
getChunkId, getEntryName, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteChunk

public ByteChunk(int chunkId,
                 boolean newStyleString)
Creates a Byte Chunk, for either the old or new style of string chunk types.


ByteChunk

public ByteChunk(int chunkId,
                 int type)
Create a Byte Chunk, with the specified type.

Method Detail

getValueByteArray

public java.io.ByteArrayOutputStream getValueByteArray()
Description copied from class: Chunk
Gets a reference to a ByteArrayOutputStream that contains the value of this chunk.

Specified by:
getValueByteArray in class Chunk

setValue

public void setValue(java.io.ByteArrayOutputStream value)
Description copied from class: Chunk
Sets the value of this chunk using a OutputStream

Specified by:
setValue in class Chunk


Copyright 2012 The Apache Software Foundation or its licensors, as applicable.