Interface ObjectRegistry

    • Method Detail

      • parseObject

        Object parseObject​(int objectClass,
                           int objectType,
                           ObjectHeader header,
                           io.netty.buffer.ByteBuf buffer)
                    throws PCEPDeserializerException
        Finds parser for given object type and class in the registry. Delegates parsing to found parser.
        objectClass - object class
        objectType - object type
        header - ObjectHeader
        buffer - object wrapped in ByteBuf
        null if the parser for this object could not be found
        PCEPDeserializerException - if the parsing did not succeed
      • serializeObject

        void serializeObject​(Object object,
                             io.netty.buffer.ByteBuf buffer)
        Find serializer for given object. Delegates parsing to found serializer.
        object - to be parsed
        buffer - ByteBuf wrapped around bytes representing given object