Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jreceiver.common.rec.source
Interface Tune  view Tune download Tune.java

All Superinterfaces:
jreceiver.common.rec.Hashable, jreceiver.common.rec.Rec, Source
All Known Implementing Classes:
TuneRec

public interface Tune
extends Source

An interface to be implemented by a 'tune' media source, i.e., associated with an mp3 file or stream with unchanging tag info.

Version:
$Revision: 1.3 $ $Date: 2002/09/24 18:20:44 $

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
 jreceiver.common.rec.tag.Album getAlbum()
          obtain the album
 java.lang.String getAlbumStr()
          obtain the album name as a string (used for display from jsp)
 jreceiver.common.rec.tag.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'
 jreceiver.common.rec.tag.Comment getComment()
          obtain the comment
 jreceiver.common.rec.tag.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(jreceiver.common.rec.tag.Album album)
          assign the album
 void setArtist(jreceiver.common.rec.tag.Artist artist)
          assign the lead performer
 void setBitrate(int bitrate)
          assign the 'bitrate'
 void setComment(jreceiver.common.rec.tag.Comment comment)
          assign the comment
 void setComposer(jreceiver.common.rec.tag.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, 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

HKEY_TUNE_TYPE

public static final java.lang.String HKEY_TUNE_TYPE
See Also:
Constant Field Values

HKEY_DATA_OFFSET

public static final java.lang.String HKEY_DATA_OFFSET
See Also:
Constant Field Values

HKEY_BITRATE

public static final java.lang.String HKEY_BITRATE
See Also:
Constant Field Values

HKEY_YEAR

public static final java.lang.String HKEY_YEAR
See Also:
Constant Field Values

HKEY_ALBUM

public static final java.lang.String HKEY_ALBUM
See Also:
Constant Field Values

HKEY_COMPOSER

public static final java.lang.String HKEY_COMPOSER
See Also:
Constant Field Values

HKEY_LEAD_PERFORMER

public static final java.lang.String HKEY_LEAD_PERFORMER
See Also:
Constant Field Values

HKEY_CONTENT_TYPE

public static final java.lang.String HKEY_CONTENT_TYPE
See Also:
Constant Field Values

HKEY_TRACK_NUMBER

public static final java.lang.String HKEY_TRACK_NUMBER
See Also:
Constant Field Values

HKEY_COMMENT

public static final java.lang.String HKEY_COMMENT
See Also:
Constant Field Values

POPULATE_ALBUM

public static final java.lang.String POPULATE_ALBUM
populate album member of a tune bean, if available

See Also:
Constant Field Values

POPULATE_ARTIST

public static final java.lang.String POPULATE_ARTIST
populate artist (lead performer) member of a tune bean, if available

See Also:
Constant Field Values

POPULATE_COMPOSER

public static final java.lang.String POPULATE_COMPOSER
populate composer member of a tune bean, if available

See Also:
Constant Field Values

POPULATE_GENRELIST

public static final java.lang.String POPULATE_GENRELIST
populate genres member of a tune bean (content type), if available

See Also:
Constant Field Values

POPULATE_COMMENTS

public static final java.lang.String POPULATE_COMMENTS
populate comment member(s) of a tune bean, if available

See Also:
Constant Field Values

TUNE_TYPE_ALL

public static final int TUNE_TYPE_ALL
Corresponds to the tunes tables of all types.

See Also:
Constant Field Values

TUNE_TYPE_FILE

public static final 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

Each 'file' tune has a record in the tune table as well as a corresponding record in the mfile table.

See Also:
Constant Field Values

TUNE_TYPE_STATION

public static final int TUNE_TYPE_STATION
A 'radio' tune source is a webcast audio source.

Each 'station' Tune has a record in the tune table as well as a corresponding record in the rtune table.

See Also:
Constant Field Values

TUNE_TYPE_CD_BASED

public static final 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.

Each 'cd based' Tune has a record in the tune table as well as a corresponding record in the cdtune table.

See Also:
Constant Field Values
Method Detail

getTuneType

public int getTuneType()
obtain the tune type (file, station, or CD)


setTuneType

public void setTuneType(int tune_type)
assign the tune type (file, station, or CD)


getDataOffset

public int getDataOffset()
obtain the offset in the music file where the mpeg data starts.


setDataOffset

public void setDataOffset(int data_offset)
assign the offset in the music file where the mpeg data starts.


getBitrate

public int getBitrate()
obtain the 'bitrate'

units are in bps, e.g., 65535 bps == 64 kbps


setBitrate

public void setBitrate(int bitrate)
assign the 'bitrate'

units are in bps, e.g., 65535 bps == 64 kbps


getTrackNo

public int getTrackNo()
obtain the 'trackno'


setTrackNo

public void setTrackNo(int trackno)
assign the 'trackno'


getYear

public int getYear()
obtain the 'year'


setYear

public void setYear(int year)
assign the 'year'


getArtist

public jreceiver.common.rec.tag.Artist getArtist()
obtain the lead performer


setArtist

public void setArtist(jreceiver.common.rec.tag.Artist artist)
assign the lead performer


getArtistStr

public java.lang.String getArtistStr()
obtain the artist name as a string (used for display from jsp)


getAlbum

public jreceiver.common.rec.tag.Album getAlbum()
obtain the album


setAlbum

public void setAlbum(jreceiver.common.rec.tag.Album album)
assign the album


getAlbumStr

public java.lang.String getAlbumStr()
obtain the album name as a string (used for display from jsp)


getComposer

public jreceiver.common.rec.tag.Composer getComposer()
obtain the composer


setComposer

public void setComposer(jreceiver.common.rec.tag.Composer composer)
assign the composer


getComposerStr

public java.lang.String getComposerStr()
obtain the composer name as a string (used for display from jsp)


getComment

public jreceiver.common.rec.tag.Comment getComment()
obtain the comment


setComment

public void setComment(jreceiver.common.rec.tag.Comment comment)
assign the comment


getGenres

public java.util.Vector getGenres()
obtain the genres


setGenres

public void setGenres(java.util.Vector genres)
assign the genres


addGenre

public void addGenre(java.lang.String genre)
assign a single genre


getGenreStr

public java.lang.String getGenreStr()
obtain the genre list, as a comma-delimited string (used for display)


getIsTuneFile

public boolean getIsTuneFile()

getIsStationTune

public boolean getIsStationTune()

getIsCdBasedTune

public boolean getIsCdBasedTune()