Class OpCode


  • public final class OpCode
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte BINARY
      OpCode for a Binary Frame
      static byte CLOSE
      OpCode for a Close Frame
      static byte CONTINUATION
      OpCode for a Continuation Frame
      static byte PING
      OpCode for a Ping Frame
      static byte PONG
      OpCode for a Pong Frame
      static byte TEXT
      OpCode for a Text Frame
      static byte UNDEFINED
      An undefined OpCode
    • Constructor Summary

      Constructors 
      Constructor Description
      OpCode()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isControlFrame​(byte opcode)  
      static boolean isDataFrame​(byte opcode)  
      static boolean isKnown​(byte opcode)
      Test for known opcodes (per the RFC spec)
      static java.lang.String name​(byte opcode)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait