public final class ChunkFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ChunkFactory.CommandDefinition
The definition of a Command, which a chunk may hold.
|
| Constructor and Description |
|---|
ChunkFactory(int version) |
| Modifier and Type | Method and Description |
|---|---|
Chunk |
createChunk(byte[] data,
int offset)
Creates the appropriate chunk at the given location.
|
int |
getVersion() |
public ChunkFactory(int version)
throws java.io.IOException
java.io.IOExceptionpublic int getVersion()
public Chunk createChunk(byte[] data, int offset)
data - offset - Copyright 2018 The Apache Software Foundation or its licensors, as applicable.