|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectDecoder
Interface to abstract away the difference between deserializing xml and binary
| Method Summary | |
|---|---|
int |
getNumSubObjects()
Returns the number of anonymous sub-objects. |
boolean |
readBooleanContents()
Reads the value in-line. |
boolean |
readBooleanField(String fieldName,
boolean dflt)
Reads a boolean. |
byte[] |
readByteArrayContents()
reads the value in-line. |
Class<?> |
readClassContents()
reads the value in-line. |
Class<?> |
readClassField(String fieldName,
Class<?> dflt)
Reads a Class. |
double |
readDoubleContents()
reads the value in-line. |
double |
readDoubleField(String fieldName,
double dflt)
Reads a double. |
float |
readFloatContents()
Reads the value in-line. |
float |
readFloatField(String fieldName,
float dflt)
Reads a float. |
int |
readIntContents()
Reads the value in-line. |
int |
readIntField(String fieldName,
int dflt)
Reads an int. |
long |
readLongContents()
reads the value in-line. |
long |
readLongField(String fieldName,
long dflt)
Reads a long. |
Object |
readObjectContents(int index)
Reads a sub-object |
Object |
readObjectField(String fieldName,
Class<?> expectedType,
Object dflt)
Reads an object using the appropriate serializer for that object |
String |
readStringContents()
Reads the value in-line. |
String |
readStringField(String fieldName,
String dflt)
Reads a String. |
| Method Detail |
|---|
Object readObjectField(String fieldName,
Class<?> expectedType,
Object dflt)
fieldName. - A hint of the field name. Ignored for binary
serialization. The subelement name for xml serialization
boolean readBooleanField(String fieldName,
boolean dflt)
fieldName. - A hint of the field name. Ignored for binary
serialization. The attribute name for xml serialization
int readIntField(String fieldName,
int dflt)
fieldName. - A hint of the field name. Ignored for binary
serialization. The attribute name for xml serialization
long readLongField(String fieldName,
long dflt)
fieldName. - A hint of the field name. Ignored for binary
serialization. The attribute name for xml serialization
float readFloatField(String fieldName,
float dflt)
fieldName. - A hint of the field name. Ignored for binary
serialization. The attribute name for xml serialization
Class<?> readClassField(String fieldName,
Class<?> dflt)
fieldName. - A hint of the field name. Ignored for binary
serialization. The attribute name for xml serialization
String readStringField(String fieldName,
String dflt)
fieldName. - A hint of the field name. Ignored for binary
serialization. The attribute name for xml serialization
double readDoubleField(String fieldName,
double dflt)
fieldName. - A hint of the field name. Ignored for binary
serialization. The attribute name for xml serializationString readStringContents()
boolean readBooleanContents()
int readIntContents()
long readLongContents()
float readFloatContents()
double readDoubleContents()
byte[] readByteArrayContents()
Class<?> readClassContents()
int getNumSubObjects()
Object readObjectContents(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||