|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.biffle.cliff.pearl.FileInfo
Wrapper for a file metainfo properties file.
| Field Summary | |
protected PropSet |
props
|
| Constructor Summary | |
FileInfo(java.lang.String text)
Creates a new FileInfo object based on property text from the device. |
|
| Method Summary | |
java.lang.String |
getAlbum()
Returns a song's album source. |
java.lang.String |
getArtist()
Returns a song's artist. |
int |
getBitrate()
Returns the bitrate of an audio file, in kilobits per second. |
java.lang.String |
getCodec()
Returns the short name of the codec used for this file. |
long |
getCreationTime()
Returns the time the file was created on the device, as a Unix-style timestamp. |
long |
getDuration()
Returns the play time of the file in milliseconds. |
int |
getFID()
Returns the unique File ID (FID) for the file. |
long |
getFIDGeneration()
Returns the time this FID was allocated as a Unix-style timestamp. |
java.lang.String |
getGenre()
Returns a song's recorded genre. |
long |
getLastPlayTime()
Returns the time the file was last played (all the way through), as a Unix-style timestamp. |
long |
getMarked()
Returns the 'Marked for Attention' flag. |
long |
getOffset()
Returns the 'offset' field. |
long |
getOptions()
Returns the 'options' field, which is a bitmask of flags, most of which are unknown. |
long |
getPlayCount()
Returns the number of times a song has been played all the way through. |
long |
getPlayCountLimit()
Returns the maximum number of times a song can be played all the way through (a technique for DRM restriction), or zero if the song is unrestricted. |
byte[] |
getProfile()
Returns the waveform profile of a song as a byte array. |
java.lang.String |
getProfilerVersion()
Returns the version of the profiling algorithm that was used to generate the waveform profile (getProfile()), RMS (getRMS()), and standard deviation (getStdDev()). |
java.lang.String |
getRID()
Returns the file's RID, a hash of three segments of the file. |
long |
getRMS()
Returns the file's mean 'loudness', as computed by the root-mean-square algorithm. |
long |
getSampleRate()
Returns the sample rate the decoded PCM stream for a song. |
long |
getSize()
Returns the size of the file in bytes. |
long |
getStdDev()
Returns the song's standard deviation from the mean loudness given by getRMS(). |
java.lang.String |
getString(java.lang.String key)
|
java.lang.String |
getTitle()
Returns a song's title. |
long |
getTrackNumber()
Returns the song's track number on the source album. |
long |
getTrailer()
Returns the 'trailer' field. |
java.lang.String |
getType()
Returns the file type. |
long |
getYear()
Returns the 'year' field from the song's metadata. |
boolean |
isBitrateVariable()
Determines whether a file is encoded with Variable BitRate encoding (true) or Constant BitRate encoding (false). |
void |
setString(java.lang.String key,
java.lang.String value)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected PropSet props
| Constructor Detail |
public FileInfo(java.lang.String text)
| Method Detail |
public java.lang.String getTitle()
public java.lang.String getArtist()
public java.lang.String getAlbum()
public java.lang.String getGenre()
public long getTrackNumber()
public long getYear()
public int getBitrate()
public boolean isBitrateVariable()
public java.lang.String getCodec()
public long getDuration()
public long getSampleRate()
public long getCreationTime()
public long getLastPlayTime()
public int getFID()
public long getFIDGeneration()
public long getSize()
public long getMarked()
public long getOffset()
public long getOptions()
public long getPlayCount()
public long getPlayCountLimit()
public byte[] getProfile()
public java.lang.String getProfilerVersion()
public java.lang.String getRID()
public long getRMS()
public long getStdDev()
public long getTrailer()
public java.lang.String getType()
public java.lang.String getString(java.lang.String key)
public void setString(java.lang.String key,
java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||