ByteChunk
, DirectoryChunk
, MessageSubmissionChunk
, PropertiesChunk
, StringChunk
public abstract class Chunk
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected int |
chunkId |
|
static java.lang.String |
DEFAULT_NAME_PREFIX |
|
protected java.lang.String |
namePrefix |
|
protected Types.MAPIType |
type |
Modifier | Constructor | Description |
---|---|---|
protected |
Chunk(int chunkId,
Types.MAPIType type) |
|
protected |
Chunk(java.lang.String namePrefix,
int chunkId,
Types.MAPIType type) |
Modifier and Type | Method | Description |
---|---|---|
int |
getChunkId() |
Gets the id of this chunk
|
java.lang.String |
getEntryName() |
Creates a string to use to identify this chunk in the POI file system object.
|
Types.MAPIType |
getType() |
Gets the numeric type of this chunk.
|
abstract void |
readValue(java.io.InputStream value) |
Reads the value of this chunk using an InputStream
|
abstract void |
writeValue(java.io.OutputStream out) |
Writes the value of this chunk back out again.
|
public static final java.lang.String DEFAULT_NAME_PREFIX
protected int chunkId
protected Types.MAPIType type
protected java.lang.String namePrefix
protected Chunk(java.lang.String namePrefix, int chunkId, Types.MAPIType type)
protected Chunk(int chunkId, Types.MAPIType type)
public int getChunkId()
public Types.MAPIType getType()
public java.lang.String getEntryName()
public abstract void writeValue(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public abstract void readValue(java.io.InputStream value) throws java.io.IOException
java.io.IOException
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.