public final class MetadataContainerFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static MetadataContainerFactory |
INSTANCE
Factory instance.
|
Modifier | Constructor and Description |
---|---|
private |
MetadataContainerFactory()
Hidden utility class constructor.
|
Modifier and Type | Method and Description |
---|---|
MetadataContainer |
createContainer(ContainerType type)
Creates an appropriate container
implementation for the given container type.
|
MetadataContainer |
createContainer(ContainerType type,
long pos,
java.math.BigInteger chunkSize)
Convenience Method for I/O.
|
MetadataContainer[] |
createContainers(ContainerType[] types)
Convenience method which calls
createContainer(ContainerType)
for each given container type. |
static MetadataContainerFactory |
getInstance()
Returns an instance.
|
private static final MetadataContainerFactory INSTANCE
private MetadataContainerFactory()
public static MetadataContainerFactory getInstance()
public MetadataContainer createContainer(ContainerType type)
type
- the type of container to get a container instance for.public MetadataContainer createContainer(ContainerType type, long pos, java.math.BigInteger chunkSize)
createContainer(ContainerType)
, but additionally assigns
position and size. (since a MetadataContainer
is actually a
Chunk
).type
- The containers type.pos
- the position within the stream.chunkSize
- the size of the container.public MetadataContainer[] createContainers(ContainerType[] types)
createContainer(ContainerType)
for each given container type.types
- types of the container which are to be created.Copyright © 2005-2013 java.net. All Rights Reserved.