|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tuneology.avm.DiscInfo
Describes the contents of a CD. Contents can be read from some sort of data store, or edited manually. Automatically maintains track numbers as tracks are inserted, deleted, and moved.
Constructor Summary | |
DiscInfo()
|
|
DiscInfo(int n)
|
Method Summary | |
void |
addTrack(TocEntry ent)
Adds a new track to the album at the end, re-allocating the Toc and incrementing the total number of tracks. |
void |
addTrack(TocEntry ent,
int ind)
Adds a new track to the album at the indicated position, re-allocating the Toc and incrementing the total number of tracks. |
void |
calculateIds()
Calculates the cdindexId and discId values. |
void |
calculateTrackString()
|
DiscInfo |
copy()
|
void |
deleteTrack(TocEntry ent)
Deletes the indicated track. |
java.lang.String |
getAlbum()
album name |
java.lang.String |
getAlbumPath()
The album name, with all strange characters replaced by '_'. |
java.lang.String |
getArranger()
from CD-TEXT info |
java.lang.String |
getArtist()
cddb info |
java.lang.String |
getArtistPath()
The artist's name, with all strange characters replaced by '_'. |
int |
getAudioLength()
the sum of the lengths of all the audio tracks |
int |
getAudioTrackCount()
|
java.lang.String |
getCdindexId()
the discid as required for cdindex |
java.lang.String |
getComment()
a comment |
int |
getDiscId()
the discid as required for freedb |
int |
getExtraStart()
the index of the beginning of the ISO 9660 volume on a CD-Extra disc |
int |
getFlags()
bits to indicate status of drive and media |
int |
getFs()
the type of filesystem on the disc, with flags |
int |
getFsSize()
the size of filesystem on the disc, in blocks |
java.lang.String |
getGenre()
hopefully an ID3 genre if you want it written to an MP3 file |
int |
getId()
an external ID |
int |
getJolietLevel()
|
int |
getLeadin()
|
int |
getLeadout()
the last index on the disc |
long |
getLength()
|
int |
getMaxAudioTracks()
|
java.lang.String |
getMcn()
Media Catalog Number, if present and read |
java.lang.String |
getPath()
|
long |
getSize()
|
java.lang.String |
getSongwriter()
from CD-TEXT info |
int |
getTocEntries()
|
TocEntry |
getTocEntry(int i)
the table of audio contents |
java.lang.String |
getTrackString()
the list of tracks as required for freedb |
java.lang.String |
getVolName()
the ISO9660 Volume Label String |
int |
getYear()
year of publishing |
boolean |
isInitialized()
true if this information had been set |
boolean |
isMultiArtist()
true if there is more than one artist |
void |
moveDown(TocEntry ent)
Swaps the track with the one below it. |
void |
moveUp(TocEntry ent)
Swaps the track with the one previous to it. |
void |
setAlbum(java.lang.String a)
album name |
void |
setArranger(java.lang.String a)
from CD-TEXT info |
void |
setArtist(java.lang.String a)
cddb info |
void |
setAudioLength(int a)
the sum of the lengths of all the audio tracks |
void |
setCdindexId(java.lang.String str)
|
void |
setComment(java.lang.String c)
a comment |
void |
setDiscId(int i)
|
void |
setExtraStart(int e)
the index of the beginning of the ISO 9660 volume on a CD-Extra disc |
void |
setFlags(int f)
bits to indicate status of drive and media |
void |
setFs(int f)
the type of filesystem on the disc, with flags |
void |
setFsSize(int f)
the size of filesystem on the disc, in blocks |
void |
setGenre(java.lang.String g)
hopefully an ID3 comment if you want it written to an MP3 file |
void |
setId(int i)
|
void |
setInitialized(boolean b)
true if this information had been set |
void |
setJolietLevel(int j)
|
void |
setLeadin(int l)
|
void |
setLeadout(int l)
the last index on the disc |
void |
setMaxAudioTracks(int tracks)
|
void |
setMcn(java.lang.String m)
Media Catalog Number, if present and read |
void |
setMultiArtist(boolean m)
true if there is more than one artist |
void |
setPath(java.lang.String p)
|
void |
setSongwriter(java.lang.String s)
from CD-TEXT info |
void |
setTocEntries(int n)
Sets the size of the track array; previous contents are lost. |
void |
setTrackString(java.lang.String s)
the list of tracks as required for freedb |
void |
setVolName(java.lang.String v)
the ISO9660 Volume Label String |
void |
setYear(int y)
year of publishing |
static void |
touch()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DiscInfo()
public DiscInfo(int n) throws java.lang.IndexOutOfBoundsException
n
- number of tracks to create.java.lang.IndexOutOfBoundsException
- Method Detail |
public int getLeadin()
public int getMaxAudioTracks()
public void setMaxAudioTracks(int tracks) throws java.lang.IndexOutOfBoundsException
tracks
- java.lang.IndexOutOfBoundsException
- public long getSize()
public int getAudioTrackCount()
public long getLength()
public int getFlags()
public int getFs()
public int getFsSize()
public int getJolietLevel()
public java.lang.String getMcn()
public int getId()
public int getDiscId()
public java.lang.String getCdindexId()
public int getExtraStart()
public int getAudioLength()
public int getLeadout()
public TocEntry getTocEntry(int i)
public int getTocEntries()
public java.lang.String getVolName()
public java.lang.String getTrackString()
public java.lang.String getArtist()
public java.lang.String getAlbum()
public int getYear()
public java.lang.String getComment()
public java.lang.String getGenre()
public java.lang.String getArranger()
public java.lang.String getSongwriter()
public java.lang.String getPath()
public boolean isMultiArtist()
public boolean isInitialized()
public void setLeadin(int l)
public void setFlags(int f)
public void setFs(int f)
public void setFsSize(int f)
public void setJolietLevel(int j) throws java.lang.IndexOutOfBoundsException
public void setMcn(java.lang.String m)
public void setExtraStart(int e)
public void setAudioLength(int a)
public void setLeadout(int l)
public void setDiscId(int i)
public void setId(int i)
public void setCdindexId(java.lang.String str)
public void setTocEntries(int n) throws java.lang.IndexOutOfBoundsException
n
- java.lang.IndexOutOfBoundsException
- public void addTrack(TocEntry ent) throws java.lang.ArrayStoreException
ent
- the new track to add to the album.java.lang.ArrayStoreException
- public void addTrack(TocEntry ent, int ind) throws java.lang.IndexOutOfBoundsException, java.lang.ArrayStoreException
ent
- ind
- java.lang.IndexOutOfBoundsException
- java.lang.ArrayStoreException
- public void moveUp(TocEntry ent) throws java.util.NoSuchElementException
ent
- java.util.NoSuchElementException
- public void moveDown(TocEntry ent) throws java.util.NoSuchElementException
ent
- java.util.NoSuchElementException
- public void deleteTrack(TocEntry ent) throws java.util.NoSuchElementException
ent
- java.util.NoSuchElementException
- public void setVolName(java.lang.String v)
public void setTrackString(java.lang.String s)
public void setArtist(java.lang.String a)
public void setAlbum(java.lang.String a)
public void setYear(int y)
public void setComment(java.lang.String c)
public void setGenre(java.lang.String g)
public void setArranger(java.lang.String a)
public void setSongwriter(java.lang.String s)
public void setPath(java.lang.String p)
public void setMultiArtist(boolean m)
public void setInitialized(boolean b)
public java.lang.String getArtistPath()
public java.lang.String getAlbumPath()
public void calculateIds()
public void calculateTrackString()
public DiscInfo copy()
public static void touch()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |