public final class ChunkFactory
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ChunkFactory.CommandDefinitionThe 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 - the chunk bytesoffset - the offset into the chunk bytes array to start reading fromCopyright 2021 The Apache Software Foundation or its licensors, as applicable.