net.tootallnate.websocket
Class FramedataImpl1

java.lang.Object
  extended by net.tootallnate.websocket.FramedataImpl1
All Implemented Interfaces:
FrameBuilder, Framedata

public class FramedataImpl1
extends java.lang.Object
implements FrameBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.tootallnate.websocket.Framedata
Framedata.Opcode
 
Constructor Summary
FramedataImpl1()
           
FramedataImpl1(Framedata.Opcode op)
           
FramedataImpl1(Framedata f)
           
 
Method Summary
 void append(Framedata nextframe)
           
 Framedata.Opcode getOpcode()
           
 byte[] getPayloadData()
           
 boolean getTransfereMasked()
           
 boolean isFin()
           
 void setFin(boolean fin)
           
 void setOptcode(Framedata.Opcode optcode)
           
 void setPayload(byte[] payload)
           
 void setTransferemasked(boolean transferemasked)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FramedataImpl1

public FramedataImpl1()

FramedataImpl1

public FramedataImpl1(Framedata.Opcode op)

FramedataImpl1

public FramedataImpl1(Framedata f)
Method Detail

isFin

public boolean isFin()
Specified by:
isFin in interface Framedata

getOpcode

public Framedata.Opcode getOpcode()
Specified by:
getOpcode in interface Framedata

getTransfereMasked

public boolean getTransfereMasked()
Specified by:
getTransfereMasked in interface Framedata

getPayloadData

public byte[] getPayloadData()
Specified by:
getPayloadData in interface Framedata

setFin

public void setFin(boolean fin)
Specified by:
setFin in interface FrameBuilder

setOptcode

public void setOptcode(Framedata.Opcode optcode)
Specified by:
setOptcode in interface FrameBuilder

setPayload

public void setPayload(byte[] payload)
Specified by:
setPayload in interface FrameBuilder

setTransferemasked

public void setTransferemasked(boolean transferemasked)
Specified by:
setTransferemasked in interface FrameBuilder

append

public void append(Framedata nextframe)
            throws InvalidFrameException
Specified by:
append in interface Framedata
Throws:
InvalidFrameException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object