|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deepfs.fsml.parsers.MP3Parser
public final class MP3Parser
Parser for MP3 audio files.
Currently not supported:
Constructor Summary | |
---|---|
MP3Parser()
|
Method Summary | |
---|---|
boolean |
check(DeepFile df)
Checks if there is a File in correct format and can be read by the parser. |
void |
extract(DeepFile df)
Extracts metadata and file contents. |
static byte[] |
getGenre(int b)
Returns the textual representation of the genre with the code b . |
void |
propagate(DeepFile df)
Propagates the metadata and file contents back to the file in the file system. |
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(DeepFile df) throws IOException
IFileParser
Checks if there is a File in correct format and can be read by the parser. Checks e.g. header bytes.
check
in interface IFileParser
df
- the DeepFile
to read from
IOException
- if an error occurs while reading from the filepublic void extract(DeepFile df) throws IOException
IFileParser
extract
in interface IFileParser
df
- the DeepFile
to save metadata and content to
IOException
- if any error occurs while reading from the filepublic static byte[] getGenre(int b)
b
.
b
- the "code" of the genre
public void propagate(DeepFile df)
IFileParser
propagate
in interface IFileParser
df
- the DeepFile
that contains the metadata and file
contents
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |