|
|||||||||
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 java.lang.String |
ReadBoolean
constant used by rpc stubgenerator to generate code to call the readBoolean method. |
static java.lang.String |
ReadChar
constant used by rpc stubgenerator to generate code to call the readChar method. |
static java.lang.String |
ReadFloat
constant used by rpc stubgenerator to generate code to call the readFloat method. |
static java.lang.String |
ReadInt
constant used by rpc stubgenerator to generate code to call the readInt method. |
static java.lang.String |
ReadLocale
constant used by rpc stubgenerator to generate code to call the readLocale method. |
static java.lang.String |
ReadLong
constant used by rpc stubgenerator to generate code to call the readLong method. |
static java.lang.String |
ReadObject
constant for calling the readObject method, used by rpc stubgenerator. |
static java.lang.String |
ReadUTF
constant for calling the readUTF method, used by rpc stubgenerator. |
static java.lang.String |
ResetObjectTable
Deprecated. |
static java.lang.String |
WriteBoolean
constant used by rpc stubgenerator to generate code to call the writeBoolean method. |
static java.lang.String |
WriteChar
constant used by rpc stubgenerator to generate code to call the writeChar method. |
static java.lang.String |
WriteFloat
constant used by rpc stubgenerator to generate code to call the writeFloat method. |
static java.lang.String |
WriteInt
constant used by rpc stubgenerator to generate code to call the writeInt method. |
static java.lang.String |
WriteLocale
constant used by rpc stubgenerator to generate code to call the writeLocale method. |
static java.lang.String |
WriteLong
constant used by rpc stubgenerator to generate code to call the writeLong method. |
static java.lang.String |
WriteObject
constant for calling the writeObject method, used by rpc stubgenerator. |
static java.lang.String |
WriteUTF
constant for calling the writeUTF method, used by rpc stubgenerator. |
Method Summary | |
---|---|
static java.util.Locale |
readLocale(java.io.ObjectInput input)
helper function to read the Locale object during serialization, read back the String from the given input stream. |
static java.lang.String |
readUTF(java.io.ObjectInput input)
helper function to read a String during serialization. |
static void |
writeLocale(java.io.ObjectOutput output,
java.util.Locale locale)
helper function to write the Locale object during serialization. |
static void |
writeUTF(java.io.ObjectOutput output,
java.lang.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 java.lang.String WriteUTF
public static final java.lang.String WriteObject
public static final java.lang.String WriteInt
public static final java.lang.String WriteBoolean
public static final java.lang.String WriteLong
public static final java.lang.String WriteFloat
public static final java.lang.String WriteChar
public static final java.lang.String WriteLocale
public static final java.lang.String ResetObjectTable
public static final java.lang.String ReadObject
public static final java.lang.String ReadUTF
public static final java.lang.String ReadInt
public static final java.lang.String ReadBoolean
public static final java.lang.String ReadChar
public static final java.lang.String ReadLong
public static final java.lang.String ReadFloat
public static final java.lang.String ReadLocale
Method Detail |
---|
public static void writeUTF(java.io.ObjectOutput output, java.lang.String str) throws java.io.IOException
output
- the object output stream to write the String. Cannot be null.str
- the String object to serialize.
java.io.IOException
- I/O error occurred while writing to outputreadUTF(java.io.ObjectInput)
public static java.lang.String readUTF(java.io.ObjectInput input) throws java.io.IOException
input
- the object input stream to read the String. Cannot be null.
java.io.IOException
- I/O error occurred while reading from inputpublic static void writeLocale(java.io.ObjectOutput output, java.util.Locale locale) throws java.io.IOException
output
- the ObjectOutput stream to write out the Locale object. Cannot be
null.locale
- the Locale object to write, okay to be null.
java.io.IOException
- throws IOException if the write fails.readLocale(java.io.ObjectInput)
public static java.util.Locale readLocale(java.io.ObjectInput input) throws java.io.IOException
input
- the ObjectInput stream to read from, cannot be null.
java.io.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 |