public class ByteChunkDeferred extends ByteChunk
ByteChunk
(if not initialized with a node) or
lazy loads its binary data from the document (if linked with a node via readValue(DocumentNode)
).DEFAULT_NAME_PREFIX
Constructor and Description |
---|
ByteChunkDeferred(java.lang.String namePrefix,
int chunkId,
Types.MAPIType type)
Creates a Byte Stream Chunk, with the specified type.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getValue()
Get bytes directly.
|
void |
readValue(DocumentNode node)
Links the chunk to a document
|
void |
readValue(java.io.InputStream value)
Reads the value of this chunk using an InputStream
|
void |
setValue(byte[] value)
Set bytes directly.
|
void |
writeValue(java.io.OutputStream out)
Writes the value of this chunk back out again.
|
getAs7bitString, toDebugFriendlyString, toString
getChunkId, getEntryName, getType
public ByteChunkDeferred(java.lang.String namePrefix, int chunkId, Types.MAPIType type)
public void readValue(DocumentNode node)
node
- the document nodepublic void readValue(java.io.InputStream value) throws java.io.IOException
Chunk
public void writeValue(java.io.OutputStream out) throws java.io.IOException
Chunk
writeValue
in class ByteChunk
java.io.IOException
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.