Class FastJavaBinDecoder.EntryImpl

    • Constructor Detail

      • EntryImpl

        public EntryImpl()
    • Method Detail

      • index

        public long index()
        Description copied from interface: DataEntry
        The index of this entry in the container
        Specified by:
        index in interface DataEntry
      • length

        public int length()
        Description copied from interface: DataEntry
        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

        Specified by:
        length in interface DataEntry
        Returns:
        a number greater than or equal to zero if the size is known, -1 if unknown
      • boolVal

        public boolean boolVal()
        Specified by:
        boolVal in interface DataEntry
      • isKeyValEntry

        public boolean isKeyValEntry()
        Description copied from interface: DataEntry
        If this object is a key value entry. key value entries have name
        Specified by:
        isKeyValEntry in interface DataEntry
      • name

        public CharSequence name()
        Description copied from interface: DataEntry
        The name, if this is a map entry , else it returns a null
        Specified by:
        name in interface DataEntry
      • depth

        public int depth()
        Description copied from interface: DataEntry
        Depth of this Object. The root most object has a depth of 1
        Specified by:
        depth in interface DataEntry
      • parent

        public DataEntry parent()
        Description copied from interface: DataEntry
        If this is a child of another container object this returns a non-null value
        Specified by:
        parent in interface DataEntry
        Returns:
        the parent container object
      • metadata

        public Object metadata()
        Description copied from interface: DataEntry
        Some Objects may have metadata. usually there is none
        Specified by:
        metadata in interface DataEntry
      • intVal

        public int intVal()
        Specified by:
        intVal in interface DataEntry
      • longVal

        public long longVal()
        Specified by:
        longVal in interface DataEntry
      • listenContainer

        public void listenContainer​(Object ctx,
                                    DataEntry.EntryListener listener)
        Description copied from interface: DataEntry
        Register a listener to get callbacks for all entries
        Specified by:
        listenContainer in interface DataEntry
        Parameters:
        ctx - This is any object that should be shared with the child entry callbacks
        listener - The listener that handles each entry in this container
      • callEnd

        public void callEnd()