public final class AsfHeader extends ChunkContainer
Modifier and Type | Field and Description |
---|---|
static Charset |
ASF_CHARSET
The charset "UTF-16LE" is mandatory for ASF handling.
|
static byte[] |
ZERO_TERM
Byte sequence representing the zero term character.
|
chunkLength, guid, position
Constructor and Description |
---|
AsfHeader(long pos,
BigInteger chunkLen,
long chunkCnt)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
findMetadataContainer(ContainerType type)
This method searches for a metadata container of the given type.
|
AudioStreamChunk |
getAudioStreamChunk()
This method returns the first audio stream chunk found in the asf file or
stream.
|
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 ChunkContainer.getChunks() . |
ContentDescription |
getContentDescription() |
EncodingChunk |
getEncodingChunk() |
EncryptionChunk |
getEncryptionChunk() |
MetadataContainer |
getExtendedContentDescription() |
AsfExtendedHeader |
getExtendedHeader() |
FileHeader |
getFileHeader() |
StreamBitratePropertiesChunk |
getStreamBitratePropertiesChunk() |
String |
prettyPrint(String prefix)
This method creates a String containing useful information prepared to be
printed on STD-OUT.
|
addChunk, assertChunkList, chunkstartsUnique, getChunks, getFirst, hasChunkByGUID, prettyPrint
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString
public static final Charset ASF_CHARSET
public static final byte[] ZERO_TERM
public AsfHeader(long pos, BigInteger chunkLen, long chunkCnt)
pos
- see Chunk.position
chunkLen
- see Chunk.chunkLength
chunkCnt
- public ContentDescription findContentDescription()
null
otherwise.public MetadataContainer findExtendedContentDescription()
null
otherwise.public MetadataContainer findMetadataContainer(ContainerType type)
type
- the type of the container to look up.null
if not
contained.public AudioStreamChunk getAudioStreamChunk()
public long getChunkCount()
ChunkContainer.getChunks()
.public ContentDescription getContentDescription()
public EncodingChunk getEncodingChunk()
public EncryptionChunk getEncryptionChunk()
public MetadataContainer getExtendedContentDescription()
public AsfExtendedHeader getExtendedHeader()
public FileHeader getFileHeader()
public StreamBitratePropertiesChunk getStreamBitratePropertiesChunk()
public String prettyPrint(String prefix)
prettyPrint
in class ChunkContainer
prefix
- each line gets this string prepended.Copyright © 2005–2020 jthink.net. All rights reserved.