entagged.audioformats.asf.data
Class StreamChunk
java.lang.Object
entagged.audioformats.asf.data.Chunk
entagged.audioformats.asf.data.StreamChunk
- Direct Known Subclasses:
- AudioStreamChunk, VideoStreamChunk
public class StreamChunk
- extends Chunk
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.
- Author:
- Christian Laireiter
StreamChunk
public StreamChunk(long pos,
BigInteger chunkLen)
- Creates an instance
- Parameters:
pos
- Position of chunk within file or stream.chunkLen
- length of chunk
getStreamNumber
public int getStreamNumber()
- Returns:
- Returns the streamNumber.
getStreamSpecificDataSize
public long getStreamSpecificDataSize()
- Returns:
- Returns the streamSpecificDataSize.
getTimeOffset
public long getTimeOffset()
- Returns:
- Returns the timeOffset.
getTypeSpecificDataSize
public long getTypeSpecificDataSize()
- Returns:
- Returns the typeSpecificDataSize.
isContentEncrypted
public boolean isContentEncrypted()
- Returns:
- Returns the contentEncrypted.
prettyPrint
public String prettyPrint()
- (overridden)
- Overrides:
prettyPrint
in class Chunk
- Returns:
- Information of current Chunk Object.
- See Also:
Chunk.prettyPrint()
setContentEncrypted
public void setContentEncrypted(boolean cntEnc)
- Parameters:
cntEnc
- The contentEncrypted to set.
setStreamNumber
public void setStreamNumber(int streamNum)
- Parameters:
streamNum
- The streamNumber to set.
setStreamSpecificDataSize
public void setStreamSpecificDataSize(long strSpecDataSize)
- Parameters:
strSpecDataSize
- The streamSpecificDataSize to set.
setTimeOffset
public void setTimeOffset(long timeOffs)
- Parameters:
timeOffs
- sets the time offset
setTypeSpecificDataSize
public void setTypeSpecificDataSize(long typeSpecDataSize)
- Parameters:
typeSpecDataSize
- The typeSpecificDataSize to set.
Copyright © 2007-2008. All Rights Reserved.