|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.build.fs.parser.AbstractParser
org.basex.build.fs.parser.MP3Parser
public final class MP3Parser
Parser for MP3 audio files.
Currently not supported:
| Constructor Summary | |
|---|---|
MP3Parser()
Standard constructor. |
|
| Method Summary | |
|---|---|
boolean |
check(BufferedFileChannel bufFC)
Checks if there is a File in correct format and can be read by the parser. |
static byte[] |
getGenre(int b)
Returns the textual representation of the genre with the code b. |
void |
meta(BufferedFileChannel f,
NewFSParser parser)
Reads the metadata from a BufferedFileChannel and fires events for
each key/value pair. |
void |
readContent(BufferedFileChannel f,
NewFSParser parser)
Reads the textual content from a FileChannel and fires events. |
| Methods inherited from class org.basex.build.fs.parser.AbstractParser |
|---|
readMeta, readMetaAndContent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MP3Parser()
| Method Detail |
|---|
public boolean check(BufferedFileChannel bufFC)
throws java.io.IOException
AbstractParserChecks if there is a File in correct format and can be read by the parser. Checks e.g. header bytes.
check in class AbstractParserbufFC - the BufferedFileChannel to read from.
java.io.IOException - if an error occurs while reading from the file.
public void meta(BufferedFileChannel f,
NewFSParser parser)
throws java.io.IOException
AbstractParser
Reads the metadata from a BufferedFileChannel and fires events for
each key/value pair.
f - BufferedFileChannel to read from.parser - the NewFSParser instance to fire events.
java.io.IOException - if any error occurs while reading from the file.NewFSParser.metaEvent(Metadata)
public void readContent(BufferedFileChannel f,
NewFSParser parser)
AbstractParser
Reads the textual content from a FileChannel and fires events.
readContent in class AbstractParserf - the BufferedFileChannel to read from.parser - the NewFSParser instance to write the content to.public static byte[] getGenre(int b)
b.
b - the "code" of the genre.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||