Methods Summary |
---|
public ContentDescription | findContentDescription()This method looks for an content description object in this header
instance, if not found there, it tries to get one from a contained ASF
header extension object.
ContentDescription result = getContentDescription();
if (result == null && getExtendedHeader() != null) {
result = getExtendedHeader().getContentDescription();
}
return result;
|
public MetadataContainer | findExtendedContentDescription()This method looks for an extended content description object in this
header instance, if not found there, it tries to get one from a contained
ASF header extension object.
MetadataContainer result = getExtendedContentDescription();
if (result == null && getExtendedHeader() != null) {
result = getExtendedHeader().getExtendedContentDescription();
}
return result;
|
public MetadataContainer | findMetadataContainer(ContainerType type)This method searches for a metadata container of the given type.
MetadataContainer result = (MetadataContainer) getFirst(type
.getContainerGUID(), MetadataContainer.class);
if (result == null) {
result = (MetadataContainer) getExtendedHeader().getFirst(
type.getContainerGUID(), MetadataContainer.class);
}
return result;
|
public AudioStreamChunk | getAudioStreamChunk()This method returns the first audio stream chunk found in the asf file or
stream.
AudioStreamChunk result = null;
final List<Chunk> streamChunks = assertChunkList(GUID.GUID_STREAM);
for (int i = 0; i < streamChunks.size() && result == null; i++) {
if (streamChunks.get(i) instanceof AudioStreamChunk) {
result = (AudioStreamChunk) streamChunks.get(i);
}
}
return result;
|
public long | getChunkCount()Returns the amount of chunks, when this instance was created.
If chunks have been added, this won't be reflected with this call.
For that use {@link #getChunks()}.
return this.chunkCount;
|
public ContentDescription | getContentDescription()
return (ContentDescription) getFirst(GUID.GUID_CONTENTDESCRIPTION,
ContentDescription.class);
|
public EncodingChunk | getEncodingChunk()
return (EncodingChunk) getFirst(GUID.GUID_ENCODING, EncodingChunk.class);
|
public EncryptionChunk | getEncryptionChunk()
return (EncryptionChunk) getFirst(GUID.GUID_CONTENT_ENCRYPTION,
EncryptionChunk.class);
|
public MetadataContainer | getExtendedContentDescription()
return (MetadataContainer) getFirst(
GUID.GUID_EXTENDED_CONTENT_DESCRIPTION, MetadataContainer.class);
|
public AsfExtendedHeader | getExtendedHeader()
return (AsfExtendedHeader) getFirst(GUID.GUID_HEADER_EXTENSION,
AsfExtendedHeader.class);
|
public FileHeader | getFileHeader()
return (FileHeader) getFirst(GUID.GUID_FILE, FileHeader.class);
|
public StreamBitratePropertiesChunk | getStreamBitratePropertiesChunk()
return (StreamBitratePropertiesChunk) getFirst(
GUID.GUID_STREAM_BITRATE_PROPERTIES,
StreamBitratePropertiesChunk.class);
|
public java.lang.String | prettyPrint(java.lang.String prefix){@inheritDoc}
final StringBuilder result = new StringBuilder(super.prettyPrint(prefix,
prefix + " | : Contains: \"" + getChunkCount() + "\" chunks"
+ Utils.LINE_SEPARATOR));
return result.toString();
|