Package tvi.webrtc

Class DataChannel.Buffer

  • Enclosing class:
    DataChannel

    public static class DataChannel.Buffer
    extends java.lang.Object
    Java version of C++ DataBuffer. The atom of data in a DataChannel.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean binary
      Indicates whether |data| contains UTF-8 text or "binary data" (i.e.
      java.nio.ByteBuffer data
      The underlying data.
    • Constructor Summary

      Constructors 
      Constructor Description
      Buffer​(java.nio.ByteBuffer data, boolean binary)  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • data

        public final java.nio.ByteBuffer data
        The underlying data.
      • binary

        public final boolean binary
        Indicates whether |data| contains UTF-8 text or "binary data" (i.e. anything else).
    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer data,
                      boolean binary)