public class ByteChunk extends Chunk
DEFAULT_NAME_PREFIX
Constructor and Description |
---|
ByteChunk(int chunkId, Types.MAPIType type)
Create a Byte Chunk, with the specified type.
|
ByteChunk(java.lang.String namePrefix, int chunkId, Types.MAPIType type)
Creates a Byte Chunk.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAs7bitString()
Returns the data, formatted as a string assuming it was a non-unicode string.
(返回数据,格式为字符串,假设它是非 unicode 字符串。)
|
byte[] |
getValue() |
void |
readValue(java.io.InputStream value)
Reads the value of this chunk using an InputStream
(使用 InputStream 读取此块的值)
|
void |
setValue(byte[] value) |
protected static java.lang.String |
toDebugFriendlyString(byte[] value)
Formats the byte array in a debug-friendly way, showing all of a short array, and the start of a longer one.
(以调试友好的方式格式化字节数组,显示所有短数组和较长数组的开头。)
|
java.lang.String |
toString()
Returns the data in a debug-friendly string format
(以调试友好的字符串格式返回数据)
|
void |
writeValue(java.io.OutputStream out)
Writes the value of this chunk back out again.
(再次写出这个块的值。)
|
getChunkId, getEntryName, getType
public ByteChunk(java.lang.String namePrefix, int chunkId, Types.MAPIType type)
public ByteChunk(int chunkId, Types.MAPIType type)
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
Chunk
(类 Chunk 中的 writeValue)
java.io.IOException
(java.io.IOException)
public byte[] getValue()
public void setValue(byte[] value)
public java.lang.String toString()
toString
in class
java.lang.Object
protected static java.lang.String toDebugFriendlyString(byte[] value)
public java.lang.String getAs7bitString()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.