public final class ChunkFactory
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
ChunkFactory.CommandDefinition |
The definition of a Command, which a chunk may hold.
|
Constructor | Description |
---|---|
ChunkFactory(int version) |
Modifier and Type | Method | 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.IOException
public int getVersion()
public Chunk createChunk(byte[] data, int offset)
data
- offset
- Copyright 2018 The Apache Software Foundation or its licensors, as applicable.