|
||||||||||
| 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. |
static byte[] |
ZERO_TERM
Byte sequence representing the zero term character. |
| 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. |
ExtendedContentDescription |
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. |
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()
|
ExtendedContentDescription |
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, getChunks, prettyPrint |
| Methods inherited from class org.jaudiotagger.audio.asf.data.Chunk |
|---|
getChunckEnd, getChunkLength, getGuid, getPosition, setPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.nio.charset.Charset ASF_CHARSET
public static final byte[] ZERO_TERM
| 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 ExtendedContentDescription findExtendedContentDescription()
null otherwise.public AudioStreamChunk getAudioStreamChunk()
public long getChunkCount()
ChunkContainer.getChunks().
public ContentDescription getContentDescription()
public EncodingChunk getEncodingChunk()
public EncryptionChunk getEncryptionChunk()
public ExtendedContentDescription 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 | |||||||||