org.apache.poi.hsmf.datatypes
Class StringChunk
java.lang.Object
org.apache.poi.hsmf.datatypes.Chunk
org.apache.poi.hsmf.datatypes.StringChunk
public class StringChunk
- extends Chunk
A Chunk made up of a single string.
- Author:
- Travis Ferguson
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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 2011 The Apache Software Foundation or
its licensors, as applicable.