|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vorbis.tageditor.OggFile
public class OggFile
Field Summary | |
---|---|
static java.lang.String |
TAG_ALBUM
The standard tag name for the "Album" property of a Ogg File |
static java.lang.String |
TAG_ARTIST
The standard tag name for the "Artist" property of a Ogg File |
static java.lang.String |
TAG_COMMENT
The standard tag name for the "Comment" property of a Ogg File |
static java.lang.String |
TAG_DATE
The standard tag name for the "Date" property of a Ogg File |
static java.lang.String |
TAG_GENRE
The standard tag name for the "Genre" property of a Ogg File |
static java.lang.String |
TAG_TITLE
The standard tag name for the "Title" property of a Ogg File |
static java.lang.String |
TAG_TRACK
The standard tag name for the "Track" property of a Ogg File |
Constructor Summary | |
---|---|
OggFile(java.io.File file)
Construct a new OggFile instance based on a file existing on the filesystem. |
Method Summary | |
---|---|
void |
addComment(java.lang.String key,
java.lang.String value)
Let you add a comment to the comments of this ogg file. |
int |
getBitRateMax()
Return the maximum bitrate of this file, if included in the metadatas of the file |
int |
getBitRateMinimum()
Return the minimum bitrate of this file, if included in the metadatas of the file |
int |
getBitRateNominal()
Return the nominal bitrate of this file, if included in the metadatas of the file |
int |
getChannels()
Return the number of channels in this stream |
java.util.Properties |
getComments()
Get the comments associated to this ogg file as a Properties java object. |
java.io.File |
getFile()
Return this ogg file as a java File object. |
int |
getOggVersion()
Return the ogg version of this file (usually 0) |
int |
getSampleRate()
Return the sample rate of this file |
void |
setComments(java.util.Properties comments)
Set the ogg comments of this file throught a Properties object. |
void |
writeFile()
Write this OggFile instance on the filesystem, including
the modification the user may have done throught the API. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TAG_ARTIST
public static final java.lang.String TAG_ALBUM
public static final java.lang.String TAG_TITLE
public static final java.lang.String TAG_DATE
public static final java.lang.String TAG_TRACK
public static final java.lang.String TAG_GENRE
public static final java.lang.String TAG_COMMENT
Constructor Detail |
---|
public OggFile(java.io.File file) throws java.io.IOException, InvalidOggFileException
OggFile
instance based on a file existing on the filesystem.
file
- The source Ogg file
java.io.IOException
- If the file cannot be found or cannot be read.
InvalidOggFileException
- If the file appears as being an invalid Ogg file.Method Detail |
---|
public void addComment(java.lang.String key, java.lang.String value)
key
- the key of this tag (example: AUTHOR)value
- the value of the tag (example: Jimmy Hendrix)public java.util.Properties getComments()
Properties
java object.
public void writeFile() throws java.io.IOException, InvalidOggFileException
OggFile
instance on the filesystem, including
the modification the user may have done throught the API.
java.io.IOException
- If something goes wrong with writing this file on
the filesystem.
InvalidOggFileException
- If the source file appears as being an
invalid Ogg File.public int getBitRateMax()
public int getBitRateMinimum()
public int getBitRateNominal()
public int getChannels()
public java.io.File getFile()
File
object. Usefull for getting informations on it.
File
object.public int getOggVersion()
public int getSampleRate()
public void setComments(java.util.Properties comments)
Properties
object.
comments
- The comments to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |