public abstract class StreamChunk extends Chunk
chunkLength, guid, position
Constructor and Description |
---|
StreamChunk(GUID streamType,
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() |
String |
prettyPrint(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
public StreamChunk(GUID streamType, 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 String prettyPrint(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–2020 jthink.net. All rights reserved.