entagged.audioformats.asf.data
Class StreamChunk

java.lang.Object
  extended by entagged.audioformats.asf.data.Chunk
      extended by 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

Field Summary
 
Fields inherited from class entagged.audioformats.asf.data.Chunk
chunkLength, guid, position
 
Constructor Summary
StreamChunk(long pos, BigInteger chunkLen)
          Creates an instance
 
Method Summary
 int getStreamNumber()
           
 long getStreamSpecificDataSize()
           
 long getTimeOffset()
           
 long getTypeSpecificDataSize()
           
 boolean isContentEncrypted()
           
 String prettyPrint()
          (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 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

StreamChunk

public StreamChunk(long pos,
                   BigInteger chunkLen)
Creates an instance

Parameters:
pos - Position of chunk within file or stream.
chunkLen - length of chunk
Method Detail

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.