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()
DataEntry
public int length()
DataEntry
CharSequence
} or byte[] , it's the no:of bytes in the streampublic FastJavaBinDecoder.Tag getTag()
public boolean isKeyValEntry()
DataEntry
isKeyValEntry
in interface DataEntry
public CharSequence name()
DataEntry
public int depth()
DataEntry
public DataEntry parent()
DataEntry
public Object metadata()
DataEntry
public Object ctx()
DataEntry
DataEntry.listenContainer(Object, EntryListener)
} methodpublic DataEntry.Type type()
DataEntry
public void listenContainer(Object ctx, DataEntry.EntryListener listener)
DataEntry
listenContainer
in interface DataEntry
ctx
- 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-2021 Apache Software Foundation. All Rights Reserved.