|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tuneology.avm.TocEntry
Describes a track or a file on a CD, including CD-TEXT info, if present. Can be an audio track, a data track, or a file on a CD-Extra disc.
Constructor Summary | |
TocEntry()
|
|
TocEntry(DiscInfo i)
|
Method Summary | |
TocEntry |
copy()
|
int |
getAdr()
the adr field for the track |
java.lang.String |
getAlbum()
read from CD-TEXT, if present |
java.lang.String |
getAlbumPath()
The album name, with all strange characters replaced by '_'. |
java.lang.String |
getArranger()
|
java.lang.String |
getArtist()
read from CD-TEXT, if present |
java.lang.String |
getArtistPath()
The artist's name, with all strange characters replaced by '_'. |
int |
getChannels()
the number of channels |
java.lang.String |
getComment()
|
long |
getFileSize()
|
int |
getFormat()
the format of the track |
int |
getFrame()
the index of the beginning of the track |
java.lang.String |
getGenre()
|
java.lang.String |
getIsrc()
the ISRC entry for the track |
int |
getLen()
the length of the track in 1/75 secs |
java.lang.String |
getLyrics()
|
int |
getMode()
the mode of the track |
java.lang.String |
getPath()
valid on MacOS, which makes a virtual file system of the CD's contents |
int |
getRate()
bit rate, in bits/second |
int |
getSession()
the session number |
java.lang.String |
getSongwriter()
|
java.lang.String |
getTitle()
read from CD-TEXT, if present |
java.lang.String |
getTitlePath()
The song title, with all strange characters replaced by '_'. |
int |
getTrack()
the track number |
int |
getType()
the type of the track |
int |
getYear()
|
boolean |
isInitialized()
true if this information had been set |
static java.lang.String |
pathString(java.lang.String s)
Replaces questionable filename characters with '_'. |
void |
setAdr(int a)
the adr field for the track |
void |
setAlbum(java.lang.String a)
set the name of the album the track is on |
void |
setArranger(java.lang.String a)
|
void |
setArtist(java.lang.String a)
read from CD-TEXT, if present |
void |
setChannels(int s)
the number of channels |
void |
setComment(java.lang.String c)
|
void |
setFileSize(long s)
|
void |
setFormat(int f)
the format of the track |
void |
setFrame(int f)
the index of the beginning of the track |
void |
setGenre(java.lang.String g)
|
void |
setInitialized(boolean b)
true if this information had been set |
void |
setIsrc(java.lang.String i)
the ISRC entry for the track |
void |
setLen(int l)
the length of the track in 1/75 secs |
void |
setLyrics(java.lang.String l)
|
void |
setMode(int m)
the mode of the track |
void |
setPath(java.lang.String p)
|
void |
setRate(int r)
bit rate, in bits/second |
void |
setSession(int s)
the session number |
void |
setSongwriter(java.lang.String s)
|
void |
setTitle(java.lang.String t)
set the title of the track |
void |
setTrack(int t)
Sets the track number. |
void |
setType(int t)
|
void |
setYear(int y)
|
static void |
touch()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TocEntry()
public TocEntry(DiscInfo i)
Method Detail |
public TocEntry copy()
public int getType()
public int getFormat()
public int getAdr()
public int getMode()
public int getFrame()
public int getLen()
public int getTrack()
public int getSession()
public int getChannels()
public java.lang.String getIsrc()
public java.lang.String getArtist()
public java.lang.String getAlbum()
public java.lang.String getTitle()
public int getRate()
public long getFileSize()
public java.lang.String getPath()
public java.lang.String getComment()
public java.lang.String getArranger()
public java.lang.String getSongwriter()
public java.lang.String getGenre()
public java.lang.String getLyrics()
public int getYear()
public boolean isInitialized()
public void setType(int t)
public void setFormat(int f)
public void setAdr(int a)
public void setMode(int m)
public void setFrame(int f)
public void setLen(int l)
public void setTrack(int t) throws java.lang.IndexOutOfBoundsException
t
- java.lang.IndexOutOfBoundsException
- public void setSession(int s)
public void setChannels(int s)
public void setIsrc(java.lang.String i)
public void setArtist(java.lang.String a)
public void setAlbum(java.lang.String a)
public void setTitle(java.lang.String t)
public void setRate(int r)
public void setFileSize(long s)
public void setPath(java.lang.String p)
public void setComment(java.lang.String c)
public void setArranger(java.lang.String a)
public void setSongwriter(java.lang.String s)
public void setGenre(java.lang.String g)
public void setLyrics(java.lang.String l)
public void setYear(int y)
public void setInitialized(boolean b)
public java.lang.String getArtistPath()
public java.lang.String getAlbumPath()
public java.lang.String getTitlePath()
public static java.lang.String pathString(java.lang.String s)
s
- the input string.public static void touch()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |