|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
net.shredzone.ifish.ltr
Class TagOggVorbis
java.lang.Objectnet.shredzone.ifish.ltr.LTR
net.shredzone.ifish.ltr.TagOggVorbis
public class TagOggVorbis
- extends LTR
Decodes an Ogg Vorbis stream. It uses the J-Ogg library, which is copyrighted by Tor-Einar Jarnbjo. His licence says that may use and modify it as will (even commercial), as long as a reference to his library is stated in the software.
NOTE: Due to a bug, there is a patch required in the J-Ogg library. In class de.jarnbjo.vorbis.CommentHeader, private method addComment(), add a line
key = key.toUpperCase();after the method declaration header.
- Version:
- $Id: TagOggVorbis.java 289 2009-04-28 21:21:46Z shred $
| Field Summary |
|---|
| Fields inherited from class net.shredzone.ifish.ltr.LTR |
|---|
factory, in |
| Constructor Summary | |
|---|---|
TagOggVorbis(RandomAccessFile in,
LTRFactory factory)
Create a new TagOggVorbis object. |
|
| Method Summary | |
|---|---|
String |
getAlbum()
Get the album. |
String |
getArtist()
Get the artist. |
String |
getComment()
Get the comment. |
String |
getGenre()
Get the genre. |
String |
getTitle()
Get the title. |
String |
getTrack()
Get the track. |
String |
getType()
Get the type of this file. |
String |
getYear()
Get the year. |
| Methods inherited from class net.shredzone.ifish.ltr.LTR |
|---|
readStringLen, readStringLen, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
TagOggVorbis
public TagOggVorbis(RandomAccessFile in, LTRFactory factory) throws FormatDecodeException
- Create a new TagOggVorbis object.
- Parameters:
in- File to readfactory- Reference to the LTRFactory- Throws:
FormatDecodeException- Couldn't decode this file
| Method Detail |
|---|
getType
public String getType()
- Get the type of this file. This is usually the compression format
itself (e.g. "OGG" or "MP3"). If there are different taggings for
this format, the used tag format is appended after a slash (e.g.
"MP3/id3v2").
- Returns:
- The type
getArtist
public String getArtist()
getAlbum
public String getAlbum()
getTitle
public String getTitle()
getGenre
public String getGenre()
getYear
public String getYear()
getComment
public String getComment()
- Get the comment.
- Specified by:
getCommentin classLTR
- Returns:
- The comment (never null)
getTrack
public String getTrack()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2007-2011 shredzone.org. All Rights Reserved.
