|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface to be implemented by a 'tune' media source, i.e., associated with an mp3 file or stream with unchanging tag info.
Field Summary | |
static java.lang.String |
HKEY_ALBUM
|
static java.lang.String |
HKEY_BITRATE
|
static java.lang.String |
HKEY_COMMENT
|
static java.lang.String |
HKEY_COMPOSER
|
static java.lang.String |
HKEY_CONTENT_TYPE
|
static java.lang.String |
HKEY_DATA_OFFSET
|
static java.lang.String |
HKEY_LEAD_PERFORMER
|
static java.lang.String |
HKEY_TRACK_NUMBER
|
static java.lang.String |
HKEY_TUNE_TYPE
|
static java.lang.String |
HKEY_YEAR
|
static java.lang.String |
POPULATE_ALBUM
populate album member of a tune bean, if available |
static java.lang.String |
POPULATE_ARTIST
populate artist (lead performer) member of a tune bean, if available |
static java.lang.String |
POPULATE_COMMENTS
populate comment member(s) of a tune bean, if available |
static java.lang.String |
POPULATE_COMPOSER
populate composer member of a tune bean, if available |
static java.lang.String |
POPULATE_GENRELIST
populate genres member of a tune bean (content type), if available |
static int |
TUNE_TYPE_ALL
Corresponds to the tunes tables of all types. |
static int |
TUNE_TYPE_CD_BASED
A 'CD' tune source is a tune located in a CD-carousel and which is not stored in a compressed file format. |
static int |
TUNE_TYPE_FILE
A 'tune file' dynamic source is conventional tune file whose contents have been cached in the database for quick retrieval and filtering |
static int |
TUNE_TYPE_STATION
A 'radio' tune source is a webcast audio source. |
Fields inherited from interface jreceiver.common.rec.source.Source |
DEFAULT_URL, FORCE_PLAYLIST_URL, HKEY_CONTENT_URL, HKEY_DIRECT_URI, HKEY_DST_MIME, HKEY_DURATION, HKEY_MIME, HKEY_SITE_ID, HKEY_SRC_ID, HKEY_SRC_TYPE, HKEY_TITLE, MAX_SRC_ID, MIN_SRC_ID, POPULATE_CONTENT_URL, POPULATE_DIRECT_URI, POPULATE_MEXTERNAL, POPULATE_MFILE, SRCTYPE_PLAYLIST, SRCTYPE_TUNE, SRCTYPE_UNDEFINED |
Fields inherited from interface jreceiver.common.rec.Rec |
HKEY_KEY, NO_LIMIT |
Method Summary | |
void |
addGenre(java.lang.String genre)
assign a single genre |
Album |
getAlbum()
obtain the album |
java.lang.String |
getAlbumStr()
obtain the album name as a string (used for display from jsp) |
Artist |
getArtist()
obtain the lead performer |
java.lang.String |
getArtistStr()
obtain the artist name as a string (used for display from jsp) |
int |
getBitrate()
obtain the 'bitrate' |
Comment |
getComment()
obtain the comment |
Composer |
getComposer()
obtain the composer |
java.lang.String |
getComposerStr()
obtain the composer name as a string (used for display from jsp) |
int |
getDataOffset()
obtain the offset in the music file where the mpeg data starts. |
java.util.Vector |
getGenres()
obtain the genres |
java.lang.String |
getGenreStr()
obtain the genre list, as a comma-delimited string (used for display) |
boolean |
getIsCdBasedTune()
|
boolean |
getIsStationTune()
|
boolean |
getIsTuneFile()
|
int |
getTrackNo()
obtain the 'trackno' |
int |
getTuneType()
obtain the tune type (file, station, or CD) |
int |
getYear()
obtain the 'year' |
void |
setAlbum(Album album)
assign the album |
void |
setArtist(Artist artist)
assign the lead performer |
void |
setBitrate(int bitrate)
assign the 'bitrate' |
void |
setComment(Comment comment)
assign the comment |
void |
setComposer(Composer composer)
assign the composer |
void |
setDataOffset(int data_offset)
assign the offset in the music file where the mpeg data starts. |
void |
setGenres(java.util.Vector genres)
assign the genres |
void |
setTrackNo(int trackno)
assign the 'trackno' |
void |
setTuneType(int tune_type)
assign the tune type (file, station, or CD) |
void |
setYear(int year)
assign the 'year' |
Methods inherited from interface jreceiver.common.rec.source.Source |
getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setMime, setSrcId, setTitle |
Methods inherited from interface jreceiver.common.rec.Rec |
getKey, setKey |
Methods inherited from interface jreceiver.common.rec.Hashable |
toHash, toString |
Field Detail |
public static final java.lang.String HKEY_TUNE_TYPE
public static final java.lang.String HKEY_DATA_OFFSET
public static final java.lang.String HKEY_BITRATE
public static final java.lang.String HKEY_YEAR
public static final java.lang.String HKEY_ALBUM
public static final java.lang.String HKEY_COMPOSER
public static final java.lang.String HKEY_LEAD_PERFORMER
public static final java.lang.String HKEY_CONTENT_TYPE
public static final java.lang.String HKEY_TRACK_NUMBER
public static final java.lang.String HKEY_COMMENT
public static final java.lang.String POPULATE_ALBUM
public static final java.lang.String POPULATE_ARTIST
public static final java.lang.String POPULATE_COMPOSER
public static final java.lang.String POPULATE_GENRELIST
public static final java.lang.String POPULATE_COMMENTS
public static final int TUNE_TYPE_ALL
public static final int TUNE_TYPE_FILE
Each 'file' tune has a record in the tune table as well as a corresponding record in the mfile table.
public static final int TUNE_TYPE_STATION
Each 'station' Tune has a record in the tune table as well as a corresponding record in the rtune table.
public static final int TUNE_TYPE_CD_BASED
Each 'cd based' Tune has a record in the tune table as well as a corresponding record in the cdtune table.
Method Detail |
public int getTuneType()
public void setTuneType(int tune_type)
public int getDataOffset()
public void setDataOffset(int data_offset)
public int getBitrate()
units are in bps, e.g., 65535 bps == 64 kbps
public void setBitrate(int bitrate)
units are in bps, e.g., 65535 bps == 64 kbps
public int getTrackNo()
public void setTrackNo(int trackno)
public int getYear()
public void setYear(int year)
public Artist getArtist()
public void setArtist(Artist artist)
public java.lang.String getArtistStr()
public Album getAlbum()
public void setAlbum(Album album)
public java.lang.String getAlbumStr()
public Composer getComposer()
public void setComposer(Composer composer)
public java.lang.String getComposerStr()
public Comment getComment()
public void setComment(Comment comment)
public java.util.Vector getGenres()
public void setGenres(java.util.Vector genres)
public void addGenre(java.lang.String genre)
public java.lang.String getGenreStr()
public boolean getIsTuneFile()
public boolean getIsStationTune()
public boolean getIsCdBasedTune()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |