|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaudiotagger.audio.asf.data.Chunk org.jaudiotagger.audio.asf.data.StreamChunk
public abstract class StreamChunk
This class is the base for all handled stream contents.
A Stream chunk delivers information about a audio or video stream. Because of
this the stream chunk identifies in one field what type of stream it is
describing and so other data is provided. However some information is common
to all stream chunks which are stored in this hierarchy of the class tree.
Field Summary | |
---|---|
private boolean |
contentEncrypted
If true , the stream data is encrypted. |
private int |
streamNumber
This field stores the number of the current stream. |
private long |
streamSpecificDataSize
|
private long |
timeOffset
Something technical. |
private GUID |
type
Stores the stream type. |
private long |
typeSpecificDataSize
Stores the size of type specific data structure within chunk. |
Fields inherited from class org.jaudiotagger.audio.asf.data.Chunk |
---|
chunkLength, guid, position |
Constructor Summary | |
---|---|
StreamChunk(GUID streamType,
java.math.BigInteger chunkLen)
Creates an instance |
Method Summary | |
---|---|
int |
getStreamNumber()
|
long |
getStreamSpecificDataSize()
|
GUID |
getStreamType()
Returns the stream type of the stream chunk. |
long |
getTimeOffset()
|
long |
getTypeSpecificDataSize()
|
boolean |
isContentEncrypted()
|
java.lang.String |
prettyPrint(java.lang.String prefix)
(overridden) |
void |
setContentEncrypted(boolean cntEnc)
|
void |
setStreamNumber(int streamNum)
|
void |
setStreamSpecificDataSize(long strSpecDataSize)
|
void |
setTimeOffset(long timeOffs)
|
void |
setTypeSpecificDataSize(long typeSpecDataSize)
|
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 |
---|
private boolean contentEncrypted
true
, the stream data is encrypted.
private int streamNumber
private long streamSpecificDataSize
typeSpecificDataSize
private long timeOffset
private final GUID type
GUID.GUID_AUDIOSTREAM
,
GUID.GUID_VIDEOSTREAM
private long typeSpecificDataSize
Constructor Detail |
---|
public StreamChunk(GUID streamType, java.math.BigInteger chunkLen)
streamType
- The GUID which tells the stream type represented (
GUID.GUID_AUDIOSTREAM
or GUID.GUID_VIDEOSTREAM
):chunkLen
- length of chunkMethod Detail |
---|
public int getStreamNumber()
public long getStreamSpecificDataSize()
public GUID getStreamType()
GUID.GUID_AUDIOSTREAM
or GUID.GUID_VIDEOSTREAM
.public long getTimeOffset()
public long getTypeSpecificDataSize()
public boolean isContentEncrypted()
public java.lang.String prettyPrint(java.lang.String prefix)
prettyPrint
in class Chunk
prefix
- each line gets this string prepended.
Chunk.prettyPrint(String)
public void setContentEncrypted(boolean cntEnc)
cntEnc
- The contentEncrypted to set.public void setStreamNumber(int streamNum)
streamNum
- The streamNumber to set.public void setStreamSpecificDataSize(long strSpecDataSize)
strSpecDataSize
- The streamSpecificDataSize to set.public void setTimeOffset(long timeOffs)
timeOffs
- sets the time offsetpublic void setTypeSpecificDataSize(long typeSpecDataSize)
typeSpecDataSize
- The typeSpecificDataSize to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |