public class ByteChunk extends Chunk
chunkId, DEFAULT_NAME_PREFIX, namePrefix, type| Constructor and Description |
|---|
ByteChunk(int chunkId,
Types.MAPIType type)
Create a Byte Chunk, with the specified
type.
|
ByteChunk(String namePrefix,
int chunkId,
Types.MAPIType type)
Creates a Byte Chunk.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAs7bitString()
Returns the data, formatted as a string assuming it
was a non-unicode string.
|
byte[] |
getValue() |
void |
readValue(InputStream value)
Reads the value of this chunk using an InputStream
|
void |
setValue(byte[] value) |
protected static 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.
|
String |
toString()
Returns the data in a debug-friendly string format
|
void |
writeValue(OutputStream out)
Writes the value of this chunk back out again.
|
getChunkId, getEntryName, getTypepublic ByteChunk(String namePrefix, int chunkId, Types.MAPIType type)
public ByteChunk(int chunkId,
Types.MAPIType type)
public void readValue(InputStream value) throws IOException
ChunkreadValue in class ChunkIOExceptionpublic void writeValue(OutputStream out) throws IOException
ChunkwriteValue in class ChunkIOExceptionpublic byte[] getValue()
public void setValue(byte[] value)
public String toString()
protected static String toDebugFriendlyString(byte[] value)
public String getAs7bitString()
Copyright © 2019. All rights reserved.