|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.util.media.video.RawVideoDef
The main function of this class is to provide a means to sort through a collection of RawVideo objects (from the rawvideos builder). MMObjectNodes can not easily be sorted (unless through sql querying). This class is, essentially, a wrapper that provides this sorting functionality.
| Field Summary | |
int |
channels
Rawvideo 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_R5
Real (.ra) audio format |
int |
id
Rawvideo id, used for sorting |
static int |
MAXCHANNELS
|
static int |
MAXSPEED
|
static int |
MINCHANNELS
|
static int |
MINSPEED
|
int |
number
Deprecated. should be retrieved from node reference |
int |
otype
Deprecated. not used? |
java.lang.String |
owner
Deprecated. not used? |
int |
speed
Rawvideo 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 |
java.lang.String |
url
Deprecated. should be retrieved from node reference |
| Constructor Summary | |
RawVideoDef(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 RawVideo object to the passed RawVideo object RawVideo 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 |
getRealVideoUrl(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_G2
public static final int MINSPEED
public static final int MAXSPEED
public static final int MINCHANNELS
public static final int MAXCHANNELS
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 RawVideoDef(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)
public java.lang.String getRealVideoUrl(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 | |||||||