|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
entagged.audioformats.asf.data
Class Chunk
java.lang.Objectentagged.audioformats.asf.data.Chunk
- Direct Known Subclasses:
- AsfHeader, ContentDescription, EncodingChunk, ExtendedContentDescription, FileHeader, StreamChunk
This class represents a chunk within asf streams.
Each chunk starts with a 16byte guid identifying the type. After that a
number (represented by 8 bytes) follows which shows the size in bytes of the
chunk. Finally there is the data of the chunk.
| Field Summary | |
|---|---|
protected BigInteger |
chunkLength
The length of current chunk. |
protected GUID |
guid
The guid of represented chunk header. |
protected long |
position
The position of current header object within file or stream. |
| Constructor Summary | |
|---|---|
Chunk(GUID headerGuid,
long pos,
BigInteger chunkLen)
Creates an instance |
|
| Method Summary | |
|---|---|
long |
getChunckEnd()
This method returns the End of the current chunk introduced by current header object. |
BigInteger |
getChunkLength()
|
GUID |
getGuid()
|
long |
getPosition()
|
String |
prettyPrint()
This method creates a String containing usefull information prepared to be printed on stdout. |
String |
toString()
(overridden) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
chunkLength
protected final BigInteger chunkLength
- The length of current chunk.
guid
protected final GUID guid
- The guid of represented chunk header.
position
protected final long position
- The position of current header object within file or stream.
| Constructor Detail |
|---|
Chunk
public Chunk(GUID headerGuid, long pos, BigInteger chunkLen)
- Creates an instance
- Parameters:
headerGuid- The GUID of header object.pos- Position of header object within stream or file.chunkLen- Length of current chunk.
| Method Detail |
|---|
getChunckEnd
public long getChunckEnd()
- This method returns the End of the current chunk introduced by current
header object.
- Returns:
- Position after current chunk.
getChunkLength
public BigInteger getChunkLength()
- Returns:
- Returns the chunkLength.
getGuid
public GUID getGuid()
- Returns:
- Returns the guid.
getPosition
public long getPosition()
- Returns:
- Returns the position.
prettyPrint
public String prettyPrint()
- This method creates a String containing usefull information prepared to
be printed on stdout.
This method is intended to be overwritten by inheriting classes.- Returns:
- Information of current Chunk Object.
toString
public String toString()
- (overridden)
- See Also:
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2007-2011 shredzone.org. All Rights Reserved.
entagged.audioformats.asf.data.Chunk