jreceiver.common.rec.source
Class FtuneRec
java.lang.Object
|
+--jreceiver.common.rec.BaseRec
|
+--jreceiver.common.rec.source.SourceRec
|
+--jreceiver.common.rec.source.TuneRec
|
+--jreceiver.common.rec.source.FtuneRec
- All Implemented Interfaces:
- Hashable, Mfile, Rec, Selectable, Source, Tune
- public class FtuneRec
- extends TuneRec
- implements Mfile
Bean to represent a single tune file
- Version:
- $Revision: 1.5 $ $Date: 2003/04/27 23:14:31 $
- Author:
- Reed Esau
Fields inherited from class jreceiver.common.rec.source.TuneRec |
m_album, m_artist, m_bitrate, m_comment, m_composer, m_data_offset, m_genres, m_is_checked, m_trackno, m_tune_type, m_year |
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.source.Tune |
HKEY_ALBUM, HKEY_BITRATE, HKEY_COMMENT, HKEY_COMPOSER, HKEY_CONTENT_TYPE, HKEY_DATA_OFFSET, HKEY_LEAD_PERFORMER, HKEY_TRACK_NUMBER, HKEY_TUNE_TYPE, HKEY_YEAR, POPULATE_ALBUM, POPULATE_ARTIST, POPULATE_COMMENTS, POPULATE_COMPOSER, POPULATE_GENRELIST, TUNE_TYPE_ALL, TUNE_TYPE_CD_BASED, TUNE_TYPE_FILE, TUNE_TYPE_STATION |
Constructor Summary |
FtuneRec()
empty ctor needed for building via Digester |
FtuneRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC |
FtuneRec(int src_id,
java.lang.String mime,
int duration,
java.lang.String title,
org.esau.ptarmigan.util.PtarURI direct_uri,
java.net.URL content_url,
java.util.Vector genres,
int bitrate,
int data_offset,
int trackno,
int year,
Artist artist,
Album album,
Composer composer,
Comment comment)
ctor - without mfile stuff |
FtuneRec(int src_id,
java.lang.String mime,
int duration,
java.lang.String title,
org.esau.ptarmigan.util.PtarURI direct_uri,
java.net.URL content_url,
java.util.Vector genres,
int bitrate,
int data_offset,
int trackno,
int year,
Artist artist,
Album album,
Composer composer,
Comment comment,
int folder_id,
long file_size,
long last_modified)
ctor |
Method Summary |
long |
getFileSize()
Obtain the file size |
int |
getFolderId()
Obtain the folder id |
long |
getLastModified()
Obtain the unix epoc timestamp of the last time the file was modified
|
void |
setFileSize(long file_size)
Assign the file size |
void |
setFolderId(int folder_id)
Assign the folder_id |
void |
setLastModified(long last_modified)
Assign the unix epoc timestamp of the last time the file was modified
|
void |
setLastModifiedISO(java.lang.String iso_date)
Assign the timestamp of the last time the file was modified
|
java.util.Hashtable |
toHash()
Store the object as a hash suitable for
transport over an XML-RPC connection or similar. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class jreceiver.common.rec.source.TuneRec |
addComment, addGenre, createInstance, createInstance, getAlbum, getAlbumStr, getArtist, getArtistStr, getBitrate, getChecked, getComment, getCommentStr, getComposer, getComposerStr, getDataOffset, getGenres, getGenreStr, getIsCdBasedTune, getIsStationTune, getIsTuneFile, getTrackNo, getTuneType, getYear, reconstitute, setAlbum, setAlbum, setArtist, setArtist, setBitrate, setChecked, setComment, setComposer, setComposer, setDataOffset, setGenres, setTrackNo, setTuneType, setYear |
Methods inherited from class jreceiver.common.rec.source.SourceRec |
getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getKey, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setKey, setMime, setSrcId, setTitle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
m_folder_id
protected int m_folder_id
m_file_size
protected long m_file_size
m_last_modified
protected long m_last_modified
FtuneRec
public FtuneRec()
- empty ctor needed for building via Digester
FtuneRec
public FtuneRec(int src_id,
java.lang.String mime,
int duration,
java.lang.String title,
org.esau.ptarmigan.util.PtarURI direct_uri,
java.net.URL content_url,
java.util.Vector genres,
int bitrate,
int data_offset,
int trackno,
int year,
Artist artist,
Album album,
Composer composer,
Comment comment)
- ctor - without mfile stuff
FtuneRec
public FtuneRec(int src_id,
java.lang.String mime,
int duration,
java.lang.String title,
org.esau.ptarmigan.util.PtarURI direct_uri,
java.net.URL content_url,
java.util.Vector genres,
int bitrate,
int data_offset,
int trackno,
int year,
Artist artist,
Album album,
Composer composer,
Comment comment,
int folder_id,
long file_size,
long last_modified)
- ctor
FtuneRec
public FtuneRec(java.util.Hashtable hash)
throws RecException
- ctor - construct from a hashtable, usually retrieved via XML-RPC
toHash
public java.util.Hashtable toHash()
- Store the object as a hash suitable for
transport over an XML-RPC connection or similar.
Use FtuneRec(Hashtable)
to transform the data
back into an object of this type.
- Specified by:
toHash
in interface Hashable
- Overrides:
toHash
in class TuneRec
- Returns:
-
getFolderId
public int getFolderId()
- Obtain the folder id
- Specified by:
getFolderId
in interface Mfile
setFolderId
public void setFolderId(int folder_id)
- Assign the folder_id
- Specified by:
setFolderId
in interface Mfile
getFileSize
public long getFileSize()
- Obtain the file size
- Specified by:
getFileSize
in interface Mfile
setFileSize
public void setFileSize(long file_size)
- Assign the file size
- Specified by:
setFileSize
in interface Mfile
getLastModified
public long getLastModified()
- Obtain the unix epoc timestamp of the last time the file was modified
Units are in milliseconds.
- Specified by:
getLastModified
in interface Mfile
setLastModified
public void setLastModified(long last_modified)
- Assign the unix epoc timestamp of the last time the file was modified
Units are in milliseconds.
- Specified by:
setLastModified
in interface Mfile
setLastModifiedISO
public void setLastModifiedISO(java.lang.String iso_date)
- Assign the timestamp of the last time the file was modified
Provide a date in ISO-8601 format (yyyy-MM-dd'T'HH:mm:ss)
Note that we have to use a different name than 'setLastModified'
as Struts/BeanUtils gets confused and thinks that getLastModified
should return a string.
- Specified by:
setLastModifiedISO
in interface Mfile
toString
public java.lang.String toString()
- Description copied from interface:
Hashable
- Returns a string representation of the object.
- Specified by:
toString
in interface Hashable
- Overrides:
toString
in class TuneRec
Copyright © 2001-2002 Reed Esau, All Rights Reserved.