|
|||||||||
| 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(Reader reader)
Constructs a Deserializer that takes its input from reader. |
|
| Method Summary | |
|---|---|
static Object |
deserializeObject(String serialization)
Convenience method for deserializing from the string serialization. |
Object |
readObject()
Deserializes the next Dictionary, array, List, or String from the current reader. |
void |
readObject(Object instance)
Deserializes the next object from the current reader. |
static Object |
readObject(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(Reader reader)
| Method Detail |
|---|
public static Object readObject(Reader reader)
public boolean useOrderedHashtable()
public void setUseOrderedHashtable(boolean useOrderedHashtable)
public static Object deserializeObject(String serialization)
public Object readObject()
throws IOException,
DeserializationException
IOException
DeserializationException
public void readObject(Object instance)
throws IOException,
DeserializationException
IOException
DeserializationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||