public final class MetadataContainerFactory extends Object
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,
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.
|
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, 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–2020 jthink.net. All rights reserved.