public abstract class StreamChunk extends Chunk
Modifier and Type | Field and Description |
---|---|
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.
|
chunkLength, guid, position
Constructor and Description |
---|
StreamChunk(GUID streamType,
java.math.BigInteger chunkLen)
Creates an instance
|
Modifier and Type | Method and Description |
---|---|
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) |
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString
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
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 chunkpublic 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.Copyright © 2005-2013 java.net. All Rights Reserved.