Class OscChar

java.lang.Object
heronarts.lx.osc.OscChar
All Implemented Interfaces:
OscArgument

public class OscChar extends Object implements OscArgument
  • Constructor Details

    • OscChar

      public OscChar()
    • OscChar

      public OscChar(char value)
  • Method Details

    • setValue

      public OscChar setValue(char value)
    • getValue

      public char getValue()
    • getByteLength

      public int getByteLength()
      Description copied from interface: OscArgument
      Gets the number of bytes used by this argument uses in its encoded representation.
      Specified by:
      getByteLength in interface OscArgument
      Returns:
      Number of bytes of data this argument consumes
    • getTypeTag

      public char getTypeTag()
      Description copied from interface: OscArgument
      Returns the type tag used to encode this argument
      Specified by:
      getTypeTag in interface OscArgument
      Returns:
      Type-tag character for this argument
    • toString

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

      public void serialize(ByteBuffer buffer)
      Description copied from interface: OscArgument
      Serializes this argument to a buffer
      Specified by:
      serialize in interface OscArgument
      Parameters:
      buffer - ByteByffer to write to
    • toInt

      public int toInt()
      Description copied from interface: OscArgument
      Gets an integer value of this argument
      Specified by:
      toInt in interface OscArgument
      Returns:
      Integer value of this argument
    • toFloat

      public float toFloat()
      Specified by:
      toFloat in interface OscArgument
    • toDouble

      public double toDouble()
      Specified by:
      toDouble in interface OscArgument
    • toBoolean

      public boolean toBoolean()
      Specified by:
      toBoolean in interface OscArgument