Package org.apache.poi.hsmf.datatypes
Class ByteChunkDeferred
- java.lang.Object
-
- org.apache.poi.hsmf.datatypes.Chunk
-
- org.apache.poi.hsmf.datatypes.ByteChunk
-
- org.apache.poi.hsmf.datatypes.ByteChunkDeferred
-
public class ByteChunkDeferred extends ByteChunk
A Chunk that either acts asByteChunk
(if not initialized with a node) or lazy loads its binary data from the document (if linked with a node viareadValue(DocumentNode)
).
-
-
Field Summary
-
Fields inherited from class org.apache.poi.hsmf.datatypes.Chunk
DEFAULT_NAME_PREFIX
-
-
Constructor Summary
Constructors Constructor Description ByteChunkDeferred(java.lang.String namePrefix, int chunkId, Types.MAPIType type)
Creates a Byte Stream Chunk, with the specified type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getValue()
Get bytes directly.void
readValue(java.io.InputStream value)
Reads the value of this chunk using an InputStreamvoid
readValue(DocumentNode node)
Links the chunk to a documentvoid
setValue(byte[] value)
Set bytes directly.void
writeValue(java.io.OutputStream out)
Writes the value of this chunk back out again.-
Methods inherited from class org.apache.poi.hsmf.datatypes.ByteChunk
getAs7bitString, toString
-
Methods inherited from class org.apache.poi.hsmf.datatypes.Chunk
getChunkId, getEntryName, getType
-
-
-
-
Constructor Detail
-
ByteChunkDeferred
public ByteChunkDeferred(java.lang.String namePrefix, int chunkId, Types.MAPIType type)
Creates a Byte Stream Chunk, with the specified type.
-
-
Method Detail
-
readValue
public void readValue(DocumentNode node)
Links the chunk to a document- Parameters:
node
- the document node
-
readValue
public void readValue(java.io.InputStream value) throws java.io.IOException
Description copied from class:Chunk
Reads the value of this chunk using an InputStream
-
writeValue
public void writeValue(java.io.OutputStream out) throws java.io.IOException
Description copied from class:Chunk
Writes the value of this chunk back out again.- Overrides:
writeValue
in classByteChunk
- Throws:
java.io.IOException
-
-