org.blinkenlights.jid3.v1
Class ID3V1_1Tag

java.lang.Object
  extended byorg.blinkenlights.jid3.ID3Tag
      extended byorg.blinkenlights.jid3.v1.ID3V1Tag
          extended byorg.blinkenlights.jid3.v1.ID3V1_1Tag
All Implemented Interfaces:
ID3Visitable

public class ID3V1_1Tag
extends ID3V1Tag


Nested Class Summary
 
Nested classes inherited from class org.blinkenlights.jid3.v1.ID3V1Tag
ID3V1Tag.Genre
 
Field Summary
 
Fields inherited from class org.blinkenlights.jid3.v1.ID3V1Tag
m_oGenre, m_sAlbum, m_sArtist, m_sComment, m_sTitle, m_sYear
 
Constructor Summary
ID3V1_1Tag()
          Constructor for ID3 V1.1 tag.
 
Method Summary
 void accept(ID3Visitor oID3Visitor)
          Accept a visitor.
 int getAlbumTrack()
          Get the album track number.
 void setAlbumTrack(int iAlbumTrack)
          Set the track number for this title on the album from which it came.
 void setComment(java.lang.String sComment)
          Set the comment field.
 java.lang.String toString()
          Represent a tag as string for debugging purposes.
 void write(java.io.OutputStream oOS)
          Write tag to output stream.
 
Methods inherited from class org.blinkenlights.jid3.v1.ID3V1Tag
getAlbum, getArtist, getComment, getGenre, getTitle, getYear, read, setAlbum, setArtist, setGenre, setTitle, setYear
 
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
 

Constructor Detail

ID3V1_1Tag

public ID3V1_1Tag()
Constructor for ID3 V1.1 tag.

Method Detail

accept

public void accept(ID3Visitor oID3Visitor)
Description copied from interface: ID3Visitable
Accept a visitor.

Parameters:
oID3Visitor - a visitor of this object

setComment

public void setComment(java.lang.String sComment)
Description copied from class: ID3V1Tag
Set the comment field.

Specified by:
setComment in class ID3V1Tag
Parameters:
sComment - a comment field (truncated to 30 characters, if longer, or 28 characters in a v1.1 tag)

setAlbumTrack

public void setAlbumTrack(int iAlbumTrack)
                   throws ID3Exception
Set the track number for this title on the album from which it came.

Parameters:
iAlbumTrack - a track number from 1 to 255
Throws:
ID3Exception - if the track number is outside the valid range

getAlbumTrack

public int getAlbumTrack()
Get the album track number.

Returns:
the set track number for this recording

toString

public java.lang.String toString()
Description copied from class: ID3Tag
Represent a tag as string for debugging purposes.

Overrides:
toString in class ID3V1Tag

write

public void write(java.io.OutputStream oOS)
           throws ID3Exception
Description copied from class: ID3V1Tag
Write tag to output stream.

Specified by:
write in class ID3V1Tag
Parameters:
oOS - output stream to which tag is to be written
Throws:
ID3Exception - if an error occurs while writing the tag