|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
java.io.FilterReader
ariba.util.io.Deserializer
public class Deserializer
FilterInputStream subclass that can deserialize Maps, Lists, arrays, and Strings from an ASCII stream. The serialization format is very similar to the output of Map's and List's toString() methods, except strings with non-alphanumeric characters are quoted and special characters are escaped so that the output can be unambiguously deserialized.
Serializer
Constructor Summary | |
---|---|
Deserializer(java.io.Reader reader)
Constructs a Deserializer that takes its input from reader. |
Method Summary | |
---|---|
static java.lang.Object |
deserializeObject(java.lang.String serialization)
Convenience method for deserializing from the string serialization. |
java.lang.Object |
readObject()
Deserializes the next Dictionary, array, List, or String from the current reader. |
void |
readObject(java.lang.Object instance)
Deserializes the next object from the current reader. |
static java.lang.Object |
readObject(java.io.Reader reader)
Convenience method for creating a Deserializer taking its input from reader. |
void |
setUseOrderedHashtable(boolean useOrderedHashtable)
|
boolean |
useOrderedHashtable()
|
Methods inherited from class java.io.FilterReader |
---|
close, mark, markSupported, read, read, ready, reset, skip |
Methods inherited from class java.io.Reader |
---|
read, read |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Deserializer(java.io.Reader reader)
Method Detail |
---|
public static java.lang.Object readObject(java.io.Reader reader)
public boolean useOrderedHashtable()
public void setUseOrderedHashtable(boolean useOrderedHashtable)
public static java.lang.Object deserializeObject(java.lang.String serialization)
public java.lang.Object readObject() throws java.io.IOException, DeserializationException
java.io.IOException
DeserializationException
public void readObject(java.lang.Object instance) throws java.io.IOException, DeserializationException
java.io.IOException
DeserializationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |