|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.blinkenlights.jid3.v2.ID3V2Frame
org.blinkenlights.jid3.v2.TextInformationID3V2Frame
org.blinkenlights.jid3.v2.TRCKTextInformationID3V2Frame
Field Summary | |
protected TextEncoding |
m_oTextEncoding
The text encoding of the strings in this frame. |
protected java.lang.String |
m_sInformation
The text content of this frame. |
Constructor Summary | |
TRCKTextInformationID3V2Frame(java.io.InputStream oIS)
|
|
TRCKTextInformationID3V2Frame(int iTrackNumber)
Constructor. |
|
TRCKTextInformationID3V2Frame(int iTrackNumber,
int iTotalTracks)
Constructor. |
Method Summary | |
void |
accept(ID3Visitor oID3Visitor)
Accept a visitor. |
boolean |
equals(java.lang.Object oOther)
|
protected byte[] |
getFrameId()
Get the four bytes which uniquely specify of which type this frame is. |
TextEncoding |
getTextEncoding()
Get the text encoding used for the text information in this frame. |
int |
getTotalTracks()
Get the total number of tracks in this album or collection. |
int |
getTrackNumber()
Get the track number of this recording. |
void |
setTextEncoding(TextEncoding oTextEncoding)
Set the text encoding to be used for the text information in this frame. |
void |
setTrackNumber(int iTrackNumber)
Set the track number or position in set of this recording in its original album or collection. |
void |
setTrackNumberAndTotalTracks(int iTrackNumber,
int iTotalTracks)
Set the track number or position in set of this recording in its original album or collection, and the total number of tracks in the complete set. |
java.lang.String |
toString()
Represent the contents of this frame as a string. |
protected void |
writeBody(ID3DataOutputStream oIDOS)
Write the body of this frame to an output stream. |
Methods inherited from class org.blinkenlights.jid3.v2.ID3V2Frame |
addID3Observer, getEncryptionMethod, isEncrypted, notifyID3Observers, removeID3Observer, setCompressionFlag, setEncryption, setFileAlterPreservationFlag, setGroupingIdentityFlag, setReadOnlyFlag, setTagAlterPreservationFlag, write, writeHeader |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected TextEncoding m_oTextEncoding
protected java.lang.String m_sInformation
Constructor Detail |
public TRCKTextInformationID3V2Frame(int iTrackNumber) throws ID3Exception
iTrackNumber
- the track number or position in set of this recording in its original
album or collection
ID3Exception
- if the track number is negativepublic TRCKTextInformationID3V2Frame(int iTrackNumber, int iTotalTracks) throws ID3Exception
iTrackNumber
- the track number or position in set of this recording in its original
album or collectioniTotalTracks
- the total number of tracks in the album or collection
ID3Exception
- if the track number is negative, or the total number of tracks is
less than the track numberpublic TRCKTextInformationID3V2Frame(java.io.InputStream oIS) throws ID3Exception
Method Detail |
public void accept(ID3Visitor oID3Visitor)
ID3Visitable
oID3Visitor
- a visitor of this objectpublic void setTrackNumber(int iTrackNumber) throws ID3Exception
iTrackNumber
- the track number or position in set of this recording in its original
album or collection
ID3Exception
- if the track number is negativepublic void setTrackNumberAndTotalTracks(int iTrackNumber, int iTotalTracks) throws ID3Exception
iTrackNumber
- the track number or position in set of this recording in its original
album or collectioniTotalTracks
- the total number of tracks in the album or collection
ID3Exception
- if the track number is negative, or the total number of tracks is
less than the track numberpublic int getTrackNumber()
public int getTotalTracks() throws ID3Exception
ID3Exception
- if the total number of tracks has not been setprotected byte[] getFrameId()
ID3V2Frame
getFrameId
in class ID3V2Frame
public java.lang.String toString()
ID3V2Frame
toString
in class ID3V2Frame
public boolean equals(java.lang.Object oOther)
public void setTextEncoding(TextEncoding oTextEncoding)
oTextEncoding
- the text encoding to be used for this framepublic TextEncoding getTextEncoding()
protected void writeBody(ID3DataOutputStream oIDOS) throws java.io.IOException
writeBody
in class ID3V2Frame
oIDOS
- the ID3 output stream to which the frame body is to be written
ID3Exception
- if there is any error writing the frame body data
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |