|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.core.util.ExternalizeUtil
public class ExternalizeUtil
Utilities used by Externalizable classes to read/write objects from ObjectInput/ObjectOutput instances.
Method Summary | |
---|---|
static java.util.List |
readList(java.io.ObjectInput in)
Reads a List that was written by this utility class. |
static java.util.Map |
readMap(java.io.ObjectInput in)
Reads a Map that was written by this utility class |
static java.lang.String[] |
readStringArray(java.io.ObjectInput in)
Reads an array of String that was written to the ouput by this utility class |
static java.lang.Throwable |
readThrowable(java.io.ObjectInput in)
|
static void |
writeArray(java.io.ObjectOutput out,
java.lang.Object[] array)
Writes an array to the output. |
static void |
writeCollection(java.io.ObjectOutput out,
java.util.Collection coll)
Writes a Collection to the output using its Iterator. |
static void |
writeList(java.io.ObjectOutput out,
java.util.List list)
Writes a List to the output using its indexes. |
static void |
writeMap(java.io.ObjectOutput out,
java.util.Map map)
Writes the key-value pairs of the given map to the output. |
static void |
writeThrowable(java.io.ObjectOutput out,
java.lang.Throwable t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void writeArray(java.io.ObjectOutput out, java.lang.Object[] array) throws java.io.IOException
out
- the output instancearray
- reference to an array. Can be null.
java.io.IOException
public static void writeCollection(java.io.ObjectOutput out, java.util.Collection coll) throws java.io.IOException
out
- the output instancecoll
- reference to a Collection. Can be null.
java.io.IOException
public static void writeList(java.io.ObjectOutput out, java.util.List list) throws java.io.IOException
out
- the output instancelist
- reference to a List. Can be null.
java.io.IOException
public static void writeMap(java.io.ObjectOutput out, java.util.Map map) throws java.io.IOException
out
- the output instancelist
- reference to a Map. Can be null.
java.io.IOException
public static java.lang.String[] readStringArray(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
in
-
java.io.IOException
java.lang.ClassNotFoundException
public static java.util.List readList(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
in
-
java.io.IOException
java.lang.ClassNotFoundException
public static java.util.Map readMap(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
in
-
java.io.IOException
java.lang.ClassNotFoundException
public static void writeThrowable(java.io.ObjectOutput out, java.lang.Throwable t) throws java.io.IOException
java.io.IOException
public static java.lang.Throwable readThrowable(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |