javax.net.websocket.extensions
Class FrameBuilder

java.lang.Object
  extended by javax.net.websocket.extensions.FrameBuilder

public class FrameBuilder
extends Object

A factory class for building Frames.

Since:
DRAFT 003
Author:
dannycoward

Constructor Summary
FrameBuilder()
           
 
Method Summary
 Frame.Data.Binary.Continuation createBinaryContinuationFrame(ByteBuffer bb, boolean isLast)
          Create a partial binary frame with the given string fragment, and indication of whether this is the last or not of a series.
 Frame.Data.Binary createBinaryFrame(ByteBuffer bb)
          Create a binary data frame with the given bytes.
 Frame.Data.Text.Continuation createTextContinuationFrame(String s, boolean isLast)
          Create a partial text frame with the given string fragment, and indication of whether this is the last or not of a series.
 Frame.Data.Text createTextFrame(String s)
          Create a text frame with the given string data.
static FrameBuilder getBuilder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameBuilder

public FrameBuilder()
Method Detail

getBuilder

public static FrameBuilder getBuilder()

createTextFrame

public Frame.Data.Text createTextFrame(String s)
Create a text frame with the given string data.


createTextContinuationFrame

public Frame.Data.Text.Continuation createTextContinuationFrame(String s,
                                                                boolean isLast)
Create a partial text frame with the given string fragment, and indication of whether this is the last or not of a series.

Parameters:
s -
isLast -
Returns:

createBinaryFrame

public Frame.Data.Binary createBinaryFrame(ByteBuffer bb)
Create a binary data frame with the given bytes.


createBinaryContinuationFrame

public Frame.Data.Binary.Continuation createBinaryContinuationFrame(ByteBuffer bb,
                                                                    boolean isLast)
Create a partial binary frame with the given string fragment, and indication of whether this is the last or not of a series.

Parameters:
s -
isLast -
Returns:


Copyright © 2012. All Rights Reserved.