public class ContentDescriptionReader extends Object implements ChunkReader
ContentDescription
Modifier | Constructor and Description |
---|---|
protected |
ContentDescriptionReader()
Should not be used for now.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canFail()
Tells whether the reader can fail to return a valid chunk.
The current Use would be a modified version of StreamChunkReader ,
which is configured to only manage audio streams. |
GUID[] |
getApplyingIds()
Returns the GUIDs identifying the types of chunk, this reader will parse.
|
Chunk |
read(GUID guid,
InputStream stream,
long chunkStart)
Parses the chunk.
|
protected ContentDescriptionReader()
public boolean canFail()
StreamChunkReader
,
which is configured to only manage audio streams. However, the primary
GUID for audio and video streams is the same. So if a stream shows itself
to be a video stream, the reader would return null
.canFail
in interface ChunkReader
true
, if further analysis of the chunk can show,
that the reader is not applicable, despite the header GUID
identification told it can handle
the chunk.public GUID[] getApplyingIds()
getApplyingIds
in interface ChunkReader
public Chunk read(GUID guid, InputStream stream, long chunkStart) throws IOException
read
in interface ChunkReader
guid
- the GUID of the chunks header, which is about to be read.stream
- source to read chunk from.GUID
is expected at the currents stream position.
The length of the chunk is about to follow.chunkStart
- the position in stream, the chunk starts.Chunk
).IOException
- On I/O Errors.Copyright © 2005–2020 jthink.net. All rights reserved.