Class BinaryMarshallers

java.lang.Object
com.here.platform.location.tpeg2.javadsl.BinaryMarshallers

public class BinaryMarshallers extends Object
Factory methods for BinaryMarshallers.
  • Constructor Details

    • BinaryMarshallers

      public BinaryMarshallers()
  • Method Details

    • transportFrames

      public static BinaryMarshaller<Iterator<TransportFrame>> transportFrames()
      Marshaller for streams of TransportFrames with default configuration.

      Reads a TpegStream as specified by SFW A.2.2.1.1.

      This does not implement the synchronization method described in SFW A.2.2.1.3, so this cannot be used to parse information out of an inputStream that starts in the middle of a frame. This should be sufficient for client and server use cases that work with full frames or streams, but not for consuming raw radio signals unless frame synchronisation is performed first.

      This marshaller will use the default UTF-8 character encoding, regardless of what character encoding is specified in the SNI fast tuning table.

      Note that we don't have a marshaller for TPEGDocuments, because TPEGDocument has no binary representation of its own, and has required fields that cannot be read from a binary representation.

    • transportFrames

      public static BinaryMarshaller<Iterator<TransportFrame>> transportFrames(BinaryMarshallerConfig config)
      Marshaller for streams of TransportFrames.

      Reads a TpegStream as specified by SFW A.2.2.1.1.

      This does not implement the synchronization method described in SFW A.2.2.1.3, so this cannot be used to parse information out of an inputStream that starts in the middle of a frame. This should be sufficient for client and server use cases that work with full frames or streams, but not for consuming raw radio signals unless frame synchronisation is performed first.

      This marshaller will use the character encoding specified in the configuration, regardless of what character encoding is specified in the SNI fast tuning table.

      Note that we don't have a marshaller for TPEGDocuments, because TPEGDocument has no binary representation of its own, and has required fields that cannot be read from a binary representation.

    • tecMessage

      public static BinaryMarshaller<TECMessage> tecMessage()
      Marshaller for TECMessages with default configuration.
    • tecMessage

      public static BinaryMarshaller<TECMessage> tecMessage(BinaryMarshallerConfig config)
      Marshaller for TECMessages.
    • tfpMessage

      public static BinaryMarshaller<TFPMessage> tfpMessage()
      Marshaller for TFPMessages with default configuration.
    • tfpMessage

      public static BinaryMarshaller<TFPMessage> tfpMessage(BinaryMarshallerConfig config)
      Marshaller for TFPMessages.
    • openLRLocationReference

      public static BinaryMarshaller<OpenLRLocationReference> openLRLocationReference()
      Marshaller for OpenLRLocationReferences with default configuration.
    • openLRLocationReference

      public static BinaryMarshaller<OpenLRLocationReference> openLRLocationReference(BinaryMarshallerConfig config)
      Marshaller for OpenLRLocationReferences.