Object

de.sciss.synth.message

ServerCodec

Related Doc: package message

Permalink

object ServerCodec extends PacketCodec

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServerCodec
  2. PacketCodec
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final val charsetName: String

    Permalink

    The character set used to encode and decode strings.

    The character set used to encode and decode strings. Unfortunately, this has not been specified in the OSC standard. We recommend to either restrict characters to 7-bit ascii range or to use UTF-8. The default implementation initially uses UTF-8.

    Definition Classes
    ServerCodecPacketCodec
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def decode(b: ByteBuffer): Packet

    Permalink

    Creates a new packet decoded from the ByteBuffer.

    Creates a new packet decoded from the ByteBuffer. This method tries to read a null terminated string at the beginning of the provided buffer. If it equals the bundle identifier, the decode of Bundle is called (which may recursively decode nested bundles), otherwise the one from Message.

    This method is final. For messages encountered, decodeMessage is called, , thus for implementations of PacketCodec, it is sufficient to overwrite decodeMessage.

    b

    ByteBuffer pointing right at the beginning of the packet. the buffer's limited should be set appropriately to allow the complete packet to be read. when the method returns, the buffer's position is right after the end of the packet.

    returns

    new decoded OSC packet

    Definition Classes
    PacketCodec
    Annotations
    @throws( classOf[Exception] )
  8. final def decodeBundle(b: ByteBuffer): Bundle

    Permalink
    Definition Classes
    PacketCodec
    Annotations
    @throws( classOf[Exception] )
  9. def decodeMessage(name: String, b: ByteBuffer): Message

    Permalink

    Decodes a message with a given name and buffer holding its arguments.

    Decodes a message with a given name and buffer holding its arguments.

    Implementations should be careful to catch potential instances of BufferUnderflowException or other runtime exception such as IllegalArgumentException and cast them into instances of PacketCodec.Exception, such that the caller can be safe to catch any error by matching against PacketCodec.Exception.

    name

    the name of the message which has already been decoded when this method is called.

    b

    the buffer, positioned at the type tags list (beginning with ',').

    Definition Classes
    ServerCodecPacketCodec
  10. def encodeBundle(bndl: Bundle, b: ByteBuffer): Unit

    Permalink

    Encodes the given bundle into the provided ByteBuffer, beginning at the buffer's current position.

    Encodes the given bundle into the provided ByteBuffer, beginning at the buffer's current position. To write the encoded packet, you will typically call flip() on the buffer, then write() on the channel.

    b

    ByteBuffer pointing right at the beginning of the osc packet. buffer position will be right after the end of the packet when the method returns.

    Definition Classes
    ServerCodecPacketCodec
  11. def encodeMessage(msg: Message, b: ByteBuffer): Unit

    Permalink

    Encodes the message onto the given ByteBuffer, beginning at the buffer's current position.

    Encodes the message onto the given ByteBuffer, beginning at the buffer's current position. To write the encoded message, you will typically call flip() on the buffer, then write() on the channel.

    b

    ByteBuffer pointing right at the beginning of the osc packet. buffer position will be right after the end of the message when the method returns.

    Definition Classes
    ServerCodecPacketCodec
  12. final def encodedBundleSize(bndl: Bundle): Int

    Permalink

    Calculates the byte size of the encoded bundle.

    Calculates the byte size of the encoded bundle. This method is final. The size is the sum of the bundle name, its timetag and the sizes of each bundle element.

    For contained messages, encodedMessageSize will be called, thus for implementations of PacketCodec, it is sufficient to overwrite encodedMessageSize.

    Definition Classes
    PacketCodec
  13. def encodedMessageSize(msg: Message): Int

    Permalink

    Calculates the byte size of the encoded message

    Calculates the byte size of the encoded message

    returns

    the size of the OSC message in bytes

    Definition Classes
    ServerCodecPacketCodec
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def printAtom(value: Any, stream: PrintStream, nestCount: Int): Unit

    Permalink

    Prints a textual representation of the given atom to the given print stream.

    Prints a textual representation of the given atom to the given print stream. Implementations should use the atom encoder suitable for the given value.

    value

    the atom to encode

    stream

    the stream to print on

    nestCount

    should only be used if the printing requires line breaks. Indentation should be 2x nestCount space characters.

    Definition Classes
    ServerCodecPacketCodec
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PacketCodec

Inherited from AnyRef

Inherited from Any

Ungrouped