org.java_websocket.framing
Class FramedataImpl1

java.lang.Object
  extended by org.java_websocket.framing.FramedataImpl1
All Implemented Interfaces:
FrameBuilder, Framedata
Direct Known Subclasses:
CloseFrameBuilder

public class FramedataImpl1
extends Object
implements FrameBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.java_websocket.framing.Framedata
Framedata.Opcode
 
Field Summary
protected static byte[] emptyarray
           
protected  boolean fin
           
protected  Framedata.Opcode optcode
           
protected  boolean transferemasked
           
 
Constructor Summary
FramedataImpl1()
           
FramedataImpl1(Framedata.Opcode op)
           
FramedataImpl1(Framedata f)
          Helper constructor which helps to create "echo" frames.
 
Method Summary
 void append(Framedata nextframe)
           
 Framedata.Opcode getOpcode()
           
 ByteBuffer getPayloadData()
           
 boolean getTransfereMasked()
           
 boolean isFin()
           
 void setFin(boolean fin)
           
 void setOptcode(Framedata.Opcode optcode)
           
 void setPayload(ByteBuffer payload)
           
 void setTransferemasked(boolean transferemasked)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

emptyarray

protected static byte[] emptyarray

fin

protected boolean fin

optcode

protected Framedata.Opcode optcode

transferemasked

protected boolean transferemasked
Constructor Detail

FramedataImpl1

public FramedataImpl1()

FramedataImpl1

public FramedataImpl1(Framedata.Opcode op)

FramedataImpl1

public FramedataImpl1(Framedata f)
Helper constructor which helps to create "echo" frames. The new object will use the same underlying payload data.

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 ByteBuffer 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(ByteBuffer payload)
                throws InvalidDataException
Specified by:
setPayload in interface FrameBuilder
Throws:
InvalidDataException

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 String toString()
Overrides:
toString in class Object


Copyright © 2013 Pusher. All Rights Reserved.