|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.blinkenlights.jid3.ID3Tag
org.blinkenlights.jid3.v1.ID3V1Tag
Nested Class Summary | |
static class |
ID3V1Tag.Genre
A class representing the predefined genres. |
Field Summary | |
protected ID3V1Tag.Genre |
m_oGenre
|
protected java.lang.String |
m_sAlbum
|
protected java.lang.String |
m_sArtist
|
protected java.lang.String |
m_sComment
|
protected java.lang.String |
m_sTitle
|
protected java.lang.String |
m_sYear
|
Constructor Summary | |
ID3V1Tag()
Constructor. |
Method Summary | |
java.lang.String |
getAlbum()
Get the name of the album from which the recording comes. |
java.lang.String |
getArtist()
Get the artist of the recording. |
java.lang.String |
getComment()
Get the comment. |
ID3V1Tag.Genre |
getGenre()
Get the genre of the recording. |
java.lang.String |
getTitle()
Get the title of the recording. |
java.lang.String |
getYear()
Get the year in which the recording was made. |
static ID3V1Tag |
read(java.io.InputStream oIS)
Read an ID3 V1 tag from an input stream. |
void |
setAlbum(java.lang.String sAlbum)
Set the name of the album from which the recording comes. |
void |
setArtist(java.lang.String sArtist)
Set the artist for the recording. |
abstract void |
setComment(java.lang.String sComment)
Set the comment field. |
void |
setGenre(ID3V1Tag.Genre oGenre)
Set the genre of the recording, using one of the predefined genre values. |
void |
setTitle(java.lang.String sTitle)
Set the title of the recording. |
void |
setYear(java.lang.String sYear)
Set the year in which the recording was made. |
java.lang.String |
toString()
Represent a tag as string for debugging purposes. |
abstract void |
write(java.io.OutputStream oOS)
Write tag to output stream. |
Methods inherited from class org.blinkenlights.jid3.ID3Tag |
useStrict, usingStrict |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.blinkenlights.jid3.util.ID3Visitable |
accept |
Field Detail |
protected java.lang.String m_sTitle
protected java.lang.String m_sArtist
protected java.lang.String m_sAlbum
protected java.lang.String m_sYear
protected java.lang.String m_sComment
protected ID3V1Tag.Genre m_oGenre
Constructor Detail |
public ID3V1Tag()
Method Detail |
public void setTitle(java.lang.String sTitle)
sTitle
- the title of the recording (truncated to 30 characters, if longer)public java.lang.String getTitle()
public void setArtist(java.lang.String sArtist)
sArtist
- the artist of the recording (truncated to 30 characters, if longer)public java.lang.String getArtist()
public void setAlbum(java.lang.String sAlbum)
sAlbum
- the name of the album (truncated to 30 characters, if longer)public java.lang.String getAlbum()
public void setYear(java.lang.String sYear)
sYear
- the year of the recording (up to 4 characters, should be numeric)public java.lang.String getYear()
public abstract void setComment(java.lang.String sComment)
sComment
- a comment field (truncated to 30 characters, if longer, or 28 characters in a v1.1 tag)public java.lang.String getComment()
public void setGenre(ID3V1Tag.Genre oGenre)
oGenre
- the genre of the recordingpublic ID3V1Tag.Genre getGenre()
public static ID3V1Tag read(java.io.InputStream oIS) throws ID3Exception
oIS
- the input stream from which to read a V1 tag
ID3Exception
- if an error occurs while reading the tagpublic abstract void write(java.io.OutputStream oOS) throws ID3Exception
oOS
- output stream to which tag is to be written
ID3Exception
- if an error occurs while writing the tagpublic java.lang.String toString()
ID3Tag
toString
in class ID3Tag
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |