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)
).
(充当 ByteChunk(如果未使用节点初始化)或延迟从文档中加载其二进制数据(如果通过 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
(使用 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 node
(node - 文档节点)
public 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
(java.io.IOException)
public byte[] getValue()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.