|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.io.SerializeUtil
public class SerializeUtil
Utilities useful for Serialization/Externalization.
| Field Summary | |
|---|---|
static String |
ReadBoolean
constant used by rpc stubgenerator to generate code to call the readBoolean method. |
static String |
ReadChar
constant used by rpc stubgenerator to generate code to call the readChar method. |
static String |
ReadFloat
constant used by rpc stubgenerator to generate code to call the readFloat method. |
static String |
ReadInt
constant used by rpc stubgenerator to generate code to call the readInt method. |
static String |
ReadLocale
constant used by rpc stubgenerator to generate code to call the readLocale method. |
static String |
ReadLong
constant used by rpc stubgenerator to generate code to call the readLong method. |
static String |
ReadObject
constant for calling the readObject method, used by rpc stubgenerator. |
static String |
ReadUTF
constant for calling the readUTF method, used by rpc stubgenerator. |
static String |
ResetObjectTable
Deprecated. |
static String |
WriteBoolean
constant used by rpc stubgenerator to generate code to call the writeBoolean method. |
static String |
WriteChar
constant used by rpc stubgenerator to generate code to call the writeChar method. |
static String |
WriteFloat
constant used by rpc stubgenerator to generate code to call the writeFloat method. |
static String |
WriteInt
constant used by rpc stubgenerator to generate code to call the writeInt method. |
static String |
WriteLocale
constant used by rpc stubgenerator to generate code to call the writeLocale method. |
static String |
WriteLong
constant used by rpc stubgenerator to generate code to call the writeLong method. |
static String |
WriteObject
constant for calling the writeObject method, used by rpc stubgenerator. |
static String |
WriteUTF
constant for calling the writeUTF method, used by rpc stubgenerator. |
| Method Summary | |
|---|---|
static Locale |
readLocale(ObjectInput input)
helper function to read the Locale object during serialization, read back the String from the given input stream. |
static String |
readUTF(ObjectInput input)
helper function to read a String during serialization. |
static void |
writeLocale(ObjectOutput output,
Locale locale)
helper function to write the Locale object during serialization. |
static void |
writeUTF(ObjectOutput output,
String str)
helper function to write a String during serialization. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WriteUTF
public static final String WriteObject
public static final String WriteInt
public static final String WriteBoolean
public static final String WriteLong
public static final String WriteFloat
public static final String WriteChar
public static final String WriteLocale
public static final String ResetObjectTable
public static final String ReadObject
public static final String ReadUTF
public static final String ReadInt
public static final String ReadBoolean
public static final String ReadChar
public static final String ReadLong
public static final String ReadFloat
public static final String ReadLocale
| Method Detail |
|---|
public static void writeUTF(ObjectOutput output,
String str)
throws IOException
output - the object output stream to write the String. Cannot be null.str - the String object to serialize.
IOException - I/O error occurred while writing to outputreadUTF(java.io.ObjectInput)
public static String readUTF(ObjectInput input)
throws IOException
input - the object input stream to read the String. Cannot be null.
IOException - I/O error occurred while reading from input
public static void writeLocale(ObjectOutput output,
Locale locale)
throws IOException
output - the ObjectOutput stream to write out the Locale object. Cannot be
null.locale - the Locale object to write, okay to be null.
IOException - throws IOException if the write fails.readLocale(java.io.ObjectInput)
public static Locale readLocale(ObjectInput input)
throws IOException
input - the ObjectInput stream to read from, cannot be null.
IOException - throws IOException if the read fails.writeLocale(java.io.ObjectOutput, java.util.Locale)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||