|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.util.Util
This class defines utility methods.
Field Summary | |
static Object |
NULL_OBJECT
A null object. |
Method Summary | |
static Component |
getComponentByName(ContentController cc,
String name)
Retrieves the sub component with the specified name from the content of a composite. |
static int[] |
readExternalIntArray(ObjectInput in)
Reads and returns an array of integer from an ObjectInput
object. |
static long[] |
readExternalLongArray(ObjectInput in)
Reads and returns an array of long from an ObjectInput
object. |
static void |
writeExternalIntArray(ObjectOutput out,
int[] array)
Writes an array of integer on an ObjectOutput object.
|
static void |
writeExternalLongArray(ObjectOutput out,
long[] array)
Writes an array of long on an ObjectOutput object.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Object NULL_OBJECT
Method Detail |
public static Component getComponentByName(ContentController cc, String name)
cc
- the content controller of the composite.name
- the name of the component to be retrieved.
null
if no
component with the specified name exists.public static void writeExternalIntArray(ObjectOutput out, int[] array) throws IOException
ObjectOutput
object.
Note: if the array is null
,-1
is
written.
out
- the ObjectOutput
on which to write.array
- the arary to write.
IOException
- if an error occurs.public static int[] readExternalIntArray(ObjectInput in) throws IOException
ObjectInput
object.
in
- the ObjectInput
from which to read.
IOException
- if an error occurs.public static void writeExternalLongArray(ObjectOutput out, long[] array) throws IOException
ObjectOutput
object.
Note: if the array is null
,-1
is
written.
out
- the ObjectOutput
on which to write.array
- the arary to write.
IOException
- if an error occurs.public static long[] readExternalLongArray(ObjectInput in) throws IOException
ObjectInput
object.
in
- the ObjectInput
from which to read.
IOException
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |