org.apache.poi.hsmf.datatypes
Class StringChunk

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

public class StringChunk
extends Chunk

A Chunk made up of a single string.

Author:
Travis Ferguson

Field Summary
 
Fields inherited from class org.apache.poi.hsmf.datatypes.Chunk
chunkId, namePrefix, type
 
Constructor Summary
StringChunk(int chunkId, boolean newStyleString)
          Creates a String Chunk, for either the old or new style of string chunk types.
StringChunk(int chunkId, int type)
          Create a String 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
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

StringChunk

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


StringChunk

public StringChunk(int chunkId,
                   int type)
Create a String 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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