Methods Summary |
---|
public MetadataContainer | createContainer(ContainerType type)Creates an appropriate {@linkplain MetadataContainer container
implementation} for the given container type.
return createContainer(type, 0, BigInteger.ZERO);
|
public MetadataContainer | createContainer(ContainerType type, long pos, java.math.BigInteger chunkSize)Convenience Method for I/O. Same as
{@link #createContainer(ContainerType)}, but additionally assigns
position and size. (since a {@link MetadataContainer} is actually a
{@link Chunk}).
MetadataContainer result;
if (type == ContainerType.CONTENT_DESCRIPTION) {
result = new ContentDescription(pos, chunkSize);
} else if (type == ContainerType.CONTENT_BRANDING) {
result = new ContentBranding(pos, chunkSize);
} else {
result = new MetadataContainer(type, pos, chunkSize);
}
return result;
|
public MetadataContainer[] | createContainers(ContainerType[] types)Convenience method which calls {@link #createContainer(ContainerType)}
for each given container type.
assert types != null;
final MetadataContainer[] result = new MetadataContainer[types.length];
for (int i = 0; i < result.length; i++) {
result[i] = createContainer(types[i]);
}
return result;
|
public static org.jaudiotagger.audio.asf.data.MetadataContainerFactory | getInstance()Returns an instance.
return INSTANCE;
|