|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hsmf.datatypes.Chunk org.apache.poi.hsmf.datatypes.ByteChunk
public class ByteChunk
A Chunk that holds binary data, normally unparsed. Generally as we know how to make sense of the contents, we create a new Chunk class and add a special case in the parser for them.
Field Summary |
---|
Fields inherited from class org.apache.poi.hsmf.datatypes.Chunk |
---|
chunkId, DEFAULT_NAME_PREFIX, namePrefix, type |
Constructor Summary | |
---|---|
ByteChunk(int chunkId,
int type)
Create a Byte Chunk, with the specified type. |
|
ByteChunk(java.lang.String namePrefix,
int chunkId,
int type)
Creates a Byte Chunk. |
Method Summary | |
---|---|
java.lang.String |
getAs7bitString()
Returns the data, formatted as a string assuming it was a non-unicode string. |
byte[] |
getValue()
|
void |
readValue(java.io.InputStream value)
Reads the value of this chunk using an InputStream |
void |
setValue(byte[] value)
|
void |
writeValue(java.io.OutputStream out)
Writes the value of this chunk back out again. |
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 |
---|
public ByteChunk(java.lang.String namePrefix, int chunkId, int type)
public ByteChunk(int chunkId, int type)
Method Detail |
---|
public void readValue(java.io.InputStream value) throws java.io.IOException
Chunk
readValue
in class Chunk
java.io.IOException
public void writeValue(java.io.OutputStream out) throws java.io.IOException
Chunk
writeValue
in class Chunk
java.io.IOException
public byte[] getValue()
public void setValue(byte[] value)
public java.lang.String getAs7bitString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |