public class FastJavaBinDecoder.EntryImpl extends Object implements DataEntry
DataEntry.EntryListener, DataEntry.FastDecoder, DataEntry.Type| Constructor and Description | 
|---|
EntryImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
boolVal()  | 
void | 
callEnd()  | 
Object | 
ctx()
This is the object shared in the parent container in the { 
DataEntry.listenContainer(Object, EntryListener)} method | 
int | 
depth()
Depth of this Object. 
 | 
double | 
doubleVal()  | 
float | 
floatVal()  | 
FastJavaBinDecoder.Tag | 
getTag()  | 
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 
 | 
DataEntry.Type | 
type()
The data type 
 | 
Object | 
val()
The object value 
 | 
public Object ctx
public long index()
DataEntrypublic int length()
DataEntryCharSequence} or byte[] , it's the no:of bytes in the streampublic FastJavaBinDecoder.Tag getTag()
public boolean isKeyValEntry()
DataEntryisKeyValEntry in interface DataEntrypublic CharSequence name()
DataEntrypublic int depth()
DataEntrypublic DataEntry parent()
DataEntrypublic Object metadata()
DataEntrypublic Object ctx()
DataEntryDataEntry.listenContainer(Object, EntryListener)} methodpublic DataEntry.Type type()
DataEntrypublic void listenContainer(Object ctx, DataEntry.EntryListener listener)
DataEntrylistenContainer in interface DataEntryctx - This is any object that should be shared with the child entry callbackslistener - The listener that handles each entry in this containerpublic void callEnd()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.