question: public static void appendFinAndOpCode ( ByteBuffer buffer , byte opcode , boolean fin ) { byte b = 0x00 ; if ( fin ) { b |= 0x80 ; } b |= opcode & 0x0F ; buffer . put ( b ) ; }
target:  Appends the Fin flag and the OpCode