Interface Input

  • All Known Implementing Classes:
    Input, Input

    public interface Input
    Interface for Input which defines the contract methods which are to be implemented. Input object provides ways to read primitives, complex object and object references from byte buffer.
    Author:
    The Red5 Project, Luke Hubbard, Codegent Ltd (luke@codegent.com)
    • Method Detail

      • readDataType

        byte readDataType()
        Read type of data
        Returns:
        Type of data as byte
      • getString

        String getString()
        Read a string without the string type header.
        Returns:
        String
      • readNull

        Object readNull()
        Read Null data type
        Returns:
        Null datatype (AS)
      • readBoolean

        Boolean readBoolean()
        Read Boolean value
        Returns:
        Boolean
      • readNumber

        Number readNumber()
        Read Number object
        Returns:
        Number
      • readString

        String readString()
        Read String object
        Returns:
        String
      • readDate

        Date readDate()
        Read date object
        Returns:
        Date
      • readArray

        Object readArray​(Type target)
        Read an array. This can result in a List or Map being deserialized depending on the array type found.
        Parameters:
        target - target type
        Returns:
        array
      • readMap

        Object readMap()
        Read a map containing key - value pairs. This can result in a List or Map being deserialized depending on the map type found.
        Returns:
        Map
      • readObject

        Object readObject()
        Read an object.
        Returns:
        object
      • readXML

        Document readXML()
        Read XML document
        Returns:
        XML DOM document
      • readCustom

        Object readCustom()
        Read custom object
        Returns:
        Custom object
      • readByteArray

        ByteArray readByteArray()
        Read ByteArray object.
        Returns:
        ByteArray object
      • readReference

        Object readReference()
        Read reference to Complex Data Type. Objects that are collaborators (properties) of other objects must be stored as references in map of id-reference pairs.
        Returns:
        object
      • clearReferences

        void clearReferences()
        Clears all references
      • readKeyValues

        Map<String,​Object> readKeyValues()
        Read key - value pairs. This is required for the RecordSet deserializer.
        Returns:
        key-value pairs
      • readVectorInt

        Vector<Integer> readVectorInt()
        Read Vector<int> object.
        Returns:
        Vector<Integer>
      • readVectorUInt

        Vector<Long> readVectorUInt()
        Read Vector<uint> object.
        Returns:
        Vector<Long>
      • readVectorNumber

        Vector<Double> readVectorNumber()
        Read Vector<Number> object.
        Returns:
        Vector<Double>
      • readVectorObject

        Vector<Object> readVectorObject()
        Read Vector<Object> object.
        Returns:
        Vector<Object>
      • reset

        void reset()
        Resets internals.