public interface DataEntry
val()} method. Please note that it creates objects and expect more memory usage
 c) read the corresponding primitive value
 Do not keep a reference of this Object beyond the scope where it is called. Read the relevant data out.| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | DataEntry.EntryListener | 
| static interface  | DataEntry.FastDecoder | 
| static class  | DataEntry.TypeThe types are a superset of json | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | boolVal() | 
| Object | ctx()This is the object shared in the parent container in the { listenContainer(Object, EntryListener)} method | 
| int | depth()Depth of this Object. | 
| double | doubleVal() | 
| float | floatVal() | 
| long | index()The index of this entry in the container | 
| int | intVal() | 
| boolean | isKeyValEntry()If this object is a key value entry. | 
| int | length()If it is a non-primitive type type and size is known in advance
 if it's a map/list, it's the no:of items in this container
 if it's a { CharSequence} or byte[] , it's the no:of bytes in the stream | 
| void | listenContainer(Object ctx,
               DataEntry.EntryListener listener)Register a listener to get callbacks for all entries | 
| long | longVal() | 
| Object | metadata()Some Objects may have metadata. | 
| CharSequence | name()The name, if this is a map entry , else it returns a null | 
| DataEntry | parent()If this is a child of another container object this returns a non-null value | 
| default String | strValue() | 
| DataEntry.Type | type()The data type | 
| Object | val()The object value | 
DataEntry.Type type()
long index()
int intVal()
long longVal()
float floatVal()
double doubleVal()
boolean boolVal()
default String strValue()
Object val()
void listenContainer(Object ctx, DataEntry.EntryListener listener)
ctx - This is any object that should be shared with the child entry callbackslistener - The listener that handles each entry in this containerObject metadata()
int depth()
DataEntry parent()
Object ctx()
listenContainer(Object, EntryListener)} methodint length()
CharSequence} or byte[] , it's the no:of bytes in the streamboolean isKeyValEntry()
CharSequence name()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.