org.glassfish.grizzly.websockets
Class Masker

java.lang.Object
  extended by org.glassfish.grizzly.websockets.Masker

public class Masker
extends Object


Constructor Summary
Masker()
           
Masker(Buffer buffer)
           
 
Method Summary
 void generateMask()
           
 byte get()
           
 byte[] get(int size)
           
 byte[] getMask()
           
 void mask(byte[] bytes, int location, byte b)
           
 void mask(byte[] target, int location, byte[] bytes)
           
 byte[] maskAndPrepend(byte[] packet)
           
 void readMask()
           
 void setBuffer(Buffer buffer)
           
 byte unmask()
           
 byte[] unmask(int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Masker

public Masker(Buffer buffer)

Masker

public Masker()
Method Detail

get

public byte get()

get

public byte[] get(int size)

unmask

public byte unmask()

unmask

public byte[] unmask(int count)

generateMask

public void generateMask()

mask

public void mask(byte[] bytes,
                 int location,
                 byte b)

mask

public void mask(byte[] target,
                 int location,
                 byte[] bytes)

maskAndPrepend

public byte[] maskAndPrepend(byte[] packet)

setBuffer

public void setBuffer(Buffer buffer)

getMask

public byte[] getMask()

readMask

public void readMask()


Copyright © 2012 Oracle Corporation. All Rights Reserved.