public class ByteChunk extends Chunk
chunkId, DEFAULT_NAME_PREFIX, namePrefix, type
Constructor | 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 | Description |
---|---|---|
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) |
|
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
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 2018 The Apache Software Foundation or its licensors, as applicable.