public class SerializationUtil extends Object
| Constructor and Description |
|---|
SerializationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
deserializeString(ObjectInput ois)
This method deserializes a potentially null string value.
|
static void |
serializeString(ObjectOutput oos,
String text)
This method is used to serialize a potentially null string.
|
public static void serializeString(ObjectOutput oos, String text) throws IOException
oos - The object output streamtext - The (possibly null) string valueIOException - Failed to serializepublic static String deserializeString(ObjectInput ois) throws IOException
ois - The object input streamIOException - Failed to deserializeCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.