Top Fields Constructors Methods
org.glassfish.grizzly.websockets

public Class Masker

extends Object
Class Inheritance
Imports
java.security.SecureRandom, org.glassfish.grizzly.Buffer

Field Summary

Modifier and TypeField and Description
private Buffer
private int
private byte[]

Constructor Summary

AccessConstructor and Description
public
Masker(Buffer buffer)

public

Method Summary

Modifier and TypeMethod and Description
public void
public byte
get()

public byte[]
get(final int size)

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

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

public byte[]
maskAndPrepend(byte[] packet)

public void
public void
setBuffer(Buffer buffer)

public byte
public byte[]
unmask(int count)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferback to summary
private Buffer buffer
indexback to summary
private int index
maskback to summary
private byte[] mask

Constructor Detail

Maskerback to summary
public Masker(Buffer buffer)
Maskerback to summary
public Masker()

Method Detail

generateMaskback to summary
public void generateMask()
getback to summary
public byte get()
getback to summary
public byte[] get(final int size)
getMaskback to summary
public byte[] getMask()
maskback to summary
public void mask(byte[] bytes, int location, byte b)
maskback to summary
public void mask(byte[] target, int location, byte[] bytes)
maskAndPrependback to summary
public byte[] maskAndPrepend(byte[] packet)
readMaskback to summary
public void readMask()
setBufferback to summary
public void setBuffer(Buffer buffer)
unmaskback to summary
public byte unmask()
unmaskback to summary
public byte[] unmask(int count)