Class PolyBoundEncoderImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void encode​(RecordClassDescriptor rcd, java.lang.Object message, deltix.util.memory.MemoryDataOutput out)
      Encodes an object, starting at current position of the specified MemoryDataOutput.
      void encode​(java.lang.Object message, deltix.util.memory.MemoryDataOutput out)
      Encodes an object, starting at current position of the specified MemoryDataOutput.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PolyBoundEncoderImpl

        public PolyBoundEncoderImpl​(FixedBoundEncoder[] encoders)
    • Method Detail

      • encode

        public void encode​(RecordClassDescriptor rcd,
                           java.lang.Object message,
                           deltix.util.memory.MemoryDataOutput out)
        Description copied from interface: PolyBoundEncoder
        Encodes an object, starting at current position of the specified MemoryDataOutput. The RecordClassDescriptor argument is necessary when there are multiple record class descriptors bound to the same Java class.
        Specified by:
        encode in interface PolyBoundEncoder
        Parameters:
        rcd - The descriptor to use.
        message - A message object to encode.
        out - A MemoryDataOutput to write to.
      • encode

        public void encode​(java.lang.Object message,
                           deltix.util.memory.MemoryDataOutput out)
        Description copied from interface: PolyBoundEncoder
        Encodes an object, starting at current position of the specified MemoryDataOutput.
        Specified by:
        encode in interface PolyBoundEncoder
        Parameters:
        message - A message object to encode.
        out - A MemoryDataOutput to write to.