Class TLV

java.lang.Object
org.yamcs.cfdp.pdu.TLV
Direct Known Subclasses:
FileStoreRequest, MessageToUser

public class TLV extends Object
Type, Length, Value
  • Field Details

  • Constructor Details

    • TLV

      public TLV(byte type, byte[] value)
  • Method Details

    • getType

      public byte getType()
    • getValue

      public byte[] getValue()
    • readTLV

      public static TLV readTLV(ByteBuffer buffer)
    • writeToBuffer

      public void writeToBuffer(ByteBuffer buffer)
    • getBytes

      public byte[] getBytes()
    • getEntityIdTLV

      public static TLV getEntityIdTLV(long entityId, int entityIdLength)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public String toJson()