|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 |
|---|
DEFAULT_NAME_PREFIX |
| 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 |
|---|
equals, 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 Chunkjava.io.IOException
public void writeValue(java.io.OutputStream out)
throws java.io.IOException
Chunk
writeValue in class Chunkjava.io.IOExceptionpublic 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 | |||||||||