|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.util.media.audio.RawAudioDef
The main function of this class is to provide a means to sort through a collection of RawAudio objects (from the rawaudios builder). MMObjectNodes can not easily be sorted (unless through sql querying). This class is, essentially, a wrapper that provides this sorting functionality.
| Field Summary | |
static java.lang.String |
AUDIO_DIR
|
int |
channels
Rawaudio nr of channels, used for sorting |
java.lang.String |
cpu
Deprecated. not used? |
int |
format
Deprecated. should be retrieved from node reference |
static int |
FORMAT_G2
G2 (surestream) audio format |
static int |
FORMAT_PCM
PCM (MP2?) audio format |
static int |
FORMAT_R5
Real (.ra) audio format |
static int |
FORMAT_WAV
WAV audio format |
static int |
G2_MAXSPEED
Maximum speed for surestream audio |
static int |
G2_MINSPEED
Minimum speed for surestream audio (currently unused) |
int |
id
Rawaudio id, used for sorting |
static int |
MAXCHANNELS
Maximum channels for audio |
static int |
MAXSPEED
Maximum speed for audio |
static int |
MINCHANNELS
Minimum channels for audio |
static int |
MINSPEED
Minimum speed for audio |
int |
number
Deprecated. should be retrieved from node reference |
int |
otype
Deprecated. not used? |
java.lang.String |
owner
Deprecated. not used? |
int |
speed
Rawaudio speed, used for sorting |
int |
status
Deprecated. should be retrieved from node reference |
static int |
STATUS_BUSY
|
static int |
STATUS_DONE
|
static int |
STATUS_GEDAAN
Deprecated. use STATUS_DONE |
static int |
STATUS_ONDERWEG
Deprecated. use STATUS_BUSY |
static int |
STATUS_REQUEST
|
static int |
STATUS_VERZOEK
Deprecated. use STATUS_REQUEST |
static int |
STORAGE_MONO
storage of raw media: mono |
static int |
STORAGE_MONO_NOBACKUP
storage of raw media: mono, no backup |
static int |
STORAGE_STEREO
storage of raw media: stereo |
static int |
STORAGE_STEREO_NOBACKUP
storage of raw media: stereo, no backup |
java.lang.String |
url
Deprecated. should be retrieved from node reference |
static int |
WAV_MAXSPEED
Maximum speed for wav audio |
| Constructor Summary | |
RawAudioDef(MMObjectNode node)
Creates an instance of the sortable wrapper for an MMObjectNode. |
|
| Method Summary | |
int |
compare(java.lang.Object thisO,
java.lang.Object otherO)
Deprecated. use compareTo(java.lang.Object) instead |
int |
compare(Sortable otherItem)
Deprecated. use compareTo(java.lang.Object) instead |
int |
compareTo(java.lang.Object o)
Compares this RawAudio object to the passed RawAudio object RawAudio objects are compared (and ordered) by their id, speed, and channel. |
boolean |
equals(java.lang.Object o)
Compares whether this object and the passed object are the same. |
java.lang.String |
getRealAudioUrl(scanpage sp)
Retrieves the url for an raw audio, based on info in the format and url fields of a wrapped rawaudio node. |
static java.util.Vector |
sort(java.util.Vector unsorted)
Deprecated. use Collections.sort() |
java.lang.String |
toString()
Returns a string representation of this object, for debugging purposes. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int STATUS_VERZOEK
public static final int STATUS_REQUEST
public static final int STATUS_ONDERWEG
public static final int STATUS_BUSY
public static final int STATUS_GEDAAN
public static final int STATUS_DONE
public static final int FORMAT_R5
public static final int FORMAT_WAV
public static final int FORMAT_PCM
public static final int FORMAT_G2
public static final int STORAGE_STEREO
public static final int STORAGE_STEREO_NOBACKUP
public static final int STORAGE_MONO
public static final int STORAGE_MONO_NOBACKUP
public static final int MINSPEED
public static final int MAXSPEED
public static final int MINCHANNELS
public static final int MAXCHANNELS
public static final int WAV_MAXSPEED
public static final int G2_MINSPEED
public static final int G2_MAXSPEED
public static final java.lang.String AUDIO_DIR
public int number
public int otype
public java.lang.String owner
public int id
public int status
public int format
public int speed
public int channels
public java.lang.String url
public java.lang.String cpu
| Constructor Detail |
public RawAudioDef(MMObjectNode node)
node - the node to wrap| Method Detail |
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the object to compare this object topublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare this object topublic int compare(Sortable otherItem)
compareTo(java.lang.Object) instead
compare in interface SortableotherItem - the object to compare this object to
public int compare(java.lang.Object thisO,
java.lang.Object otherO)
compareTo(java.lang.Object) instead
compare in interface CompareInterfacethisO - the first object to compareotherO - the second object to comparepublic static java.util.Vector sort(java.util.Vector unsorted)
unsorted - the Vector to storpublic java.lang.String getRealAudioUrl(scanpage sp)
sp - scanpage parameter.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||