|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jaudiotagger.audio.asf.data.Chunk
org.jaudiotagger.audio.asf.data.ChunkContainer
org.jaudiotagger.audio.asf.data.AsfHeader
public final class AsfHeader
Each ASF file starts with a so called header.
This header contains other chunks. Each chunk starts with a 16 byte GUID
followed by the length (in bytes) of the chunk (including GUID). The length
number takes 8 bytes and is unsigned. Finally the chunk's data appears.
| Field Summary | |
|---|---|
static java.nio.charset.Charset |
ASF_CHARSET
The charset "UTF-16LE" is mandatory for ASF handling. |
private long |
chunkCount
An ASF header contains multiple chunks. |
static byte[] |
ZERO_TERM
Byte sequence representing the zero term character. |
| Fields inherited from class org.jaudiotagger.audio.asf.data.Chunk |
|---|
chunkLength, guid, position |
| Constructor Summary | |
|---|---|
AsfHeader(long pos,
java.math.BigInteger chunkLen,
long chunkCnt)
Creates an instance. |
|
| Method Summary | |
|---|---|
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()
|
java.lang.String |
prettyPrint(java.lang.String prefix)
This method creates a String containing useful information prepared to be printed on STD-OUT. This method is intended to be overwritten by inheriting classes. |
| Methods inherited from class org.jaudiotagger.audio.asf.data.ChunkContainer |
|---|
addChunk, assertChunkList, chunkstartsUnique, getChunks, getFirst, hasChunkByGUID, prettyPrint |
| Methods inherited from class org.jaudiotagger.audio.asf.data.Chunk |
|---|
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.nio.charset.Charset ASF_CHARSET
public static final byte[] ZERO_TERM
private final long chunkCount
| Constructor Detail |
|---|
public AsfHeader(long pos,
java.math.BigInteger chunkLen,
long chunkCnt)
pos - see Chunk.positionchunkLen - see Chunk.chunkLengthchunkCnt - | Method Detail |
|---|
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 java.lang.String prettyPrint(java.lang.String prefix)
prettyPrint in class ChunkContainerprefix - each line gets this string prepended.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||