|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaudiotagger.audio.asf.io.ContentDescriptionReader
public class ContentDescriptionReader
Reads and interprets the data of a ASF chunk containing title, author...
ContentDescription| Method Summary | |
|---|---|
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 |
getApplyingId()
Returns the GUID identifying the type of chunk, this reader will parse. |
Chunk |
read(GUID guid,
java.io.InputStream stream,
long chunkStart)
Parses the chunk. |
static java.lang.String |
readFixedSizeUTF16Str(java.io.InputStream stream,
int strLen)
This method reads a UTF-16 encoded String. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String readFixedSizeUTF16Str(java.io.InputStream stream,
int strLen)
throws java.io.IOException
stream - Input sourcestrLen - Number of bytes the String may take.
java.io.IOException - read errors.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 ChunkReadertrue, 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 getApplyingId()
getApplyingId in interface ChunkReader
public Chunk read(GUID guid,
java.io.InputStream stream,
long chunkStart)
throws java.io.IOException
read in interface ChunkReaderguid - 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).java.io.IOException - On I/O Errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||