|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object entagged.audioformats.asf.data.Chunk entagged.audioformats.asf.data.AsfHeader
public 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 |
---|
Fields inherited from class entagged.audioformats.asf.data.Chunk |
---|
chunkLength, guid, position |
Constructor Summary | |
---|---|
AsfHeader(long pos,
BigInteger chunkLen,
long chunkCnt)
Creates an instance. |
Method Summary | |
---|---|
void |
addStreamChunk(StreamChunk toAdd)
This method appends a StreamChunk to the header. |
void |
addUnspecifiedChunk(Chunk toAppend)
This method appends the given chunk to the unspecifiedlist. |
AudioStreamChunk |
getAudioStreamChunk()
This method returns the first audio stream chunk found in the asf file or stream. |
long |
getChunkCount()
|
ContentDescription |
getContentDescription()
|
EncodingChunk |
getEncodingChunk()
|
ExtendedContentDescription |
getExtendedContentDescription()
|
FileHeader |
getFileHeader()
|
StreamBitratePropertiesChunk |
getStreamBitratePropertiesChunk()
|
StreamChunk |
getStreamChunk(int index)
This method returns the StreamChunk at given index. |
int |
getStreamChunkCount()
This method returns the amount of StreamChunks in this header. |
Chunk |
getUnspecifiedChunk(int index)
This method returns the unspecified chunk at given position. |
int |
getUnspecifiedChunkCount()
This method returns the number of Chunk objects which where
inserted using addUnspecifiedChunk(Chunk) . |
String |
prettyPrint()
(overridden) |
void |
setContentDescription(ContentDescription contentDesc)
|
void |
setEncodingChunk(EncodingChunk encChunk)
|
void |
setExtendedContentDescription(ExtendedContentDescription th)
|
void |
setFileHeader(FileHeader fh)
|
void |
setStreamBitratePropertiesChunk(StreamBitratePropertiesChunk streamBitratePropertiesChunk1)
|
Methods inherited from class entagged.audioformats.asf.data.Chunk |
---|
getChunckEnd, getChunkLength, getGuid, getPosition, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AsfHeader(long pos, BigInteger chunkLen, long chunkCnt)
pos
- see Chunk.position
chunkLen
- see Chunk.chunkLength
chunkCnt
- Method Detail |
---|
public void addStreamChunk(StreamChunk toAdd)
toAdd
- Chunk to add.public void addUnspecifiedChunk(Chunk toAppend)
toAppend
- The chunk whose use is unknown or of no interest.public AudioStreamChunk getAudioStreamChunk()
public long getChunkCount()
public ContentDescription getContentDescription()
public EncodingChunk getEncodingChunk()
public ExtendedContentDescription getExtendedContentDescription()
public FileHeader getFileHeader()
public StreamBitratePropertiesChunk getStreamBitratePropertiesChunk()
public StreamChunk getStreamChunk(int index)
index
- index of the wanted chunk
public int getStreamChunkCount()
public Chunk getUnspecifiedChunk(int index)
index
- Index of the wanted chunk
public int getUnspecifiedChunkCount()
Chunk
objects which where
inserted using addUnspecifiedChunk(Chunk)
.
public String prettyPrint()
prettyPrint
in class Chunk
Chunk.prettyPrint()
public void setContentDescription(ContentDescription contentDesc)
contentDesc
- sets the contentDescription. null
deletes the
chunk.public void setEncodingChunk(EncodingChunk encChunk)
encChunk
- The encodingChunk to set.public void setExtendedContentDescription(ExtendedContentDescription th)
th
- sets the extendedContentDescription. null
delete the chunk.public void setFileHeader(FileHeader fh)
fh
- public void setStreamBitratePropertiesChunk(StreamBitratePropertiesChunk streamBitratePropertiesChunk1)
streamBitratePropertiesChunk
- The streamBitratePropertiesChunk to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |