public final class ChunkFactory extends Object
Modifier and Type | Class and Description |
---|---|
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 IOException
IOException
public int getVersion()
public Chunk createChunk(byte[] data, int offset)
data
- offset
- Copyright © 2020. All rights reserved.