public interface ObjectDecoder
Modifier and Type | Method and Description |
---|---|
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.
|
byte |
readByteContents()
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.
|
Object readObjectField(String fieldName, Class<?> expectedType, Object dflt)
fieldName
- A hint of the field name. Ignored for binary
serialization. The subelement name for xml serializationboolean readBooleanField(String fieldName, boolean dflt)
fieldName
- A hint of the field name. Ignored for binary
serialization. The attribute name for xml serializationint readIntField(String fieldName, int dflt)
fieldName
- A hint of the field name. Ignored for binary
serialization. The attribute name for xml serializationlong readLongField(String fieldName, long dflt)
fieldName
- A hint of the field name. Ignored for binary
serialization. The attribute name for xml serializationfloat readFloatField(String fieldName, float dflt)
fieldName
- A hint of the field name. Ignored for binary
serialization. The attribute name for xml serializationClass<?> readClassField(String fieldName, Class<?> dflt)
fieldName
- A hint of the field name. Ignored for binary
serialization. The attribute name for xml serializationString readStringField(String fieldName, String dflt)
fieldName
- A hint of the field name. Ignored for binary
serialization. The attribute name for xml serializationdouble 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 readByteContents()
byte[] readByteArrayContents()
Class<?> readClassContents()
int getNumSubObjects()
Object readObjectContents(int index)
Copyright © 2019. All rights reserved.