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
static Frame.Data.Binary createBinaryContinuationFrame(String s, 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.
static Frame.Data.Binary createBinaryFrame(String s)
          Create a binary data frame with the given bytes.
static 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.
static Frame.Data.Text createTextFrame(String s)
          Create a text frame with the given string data.
 
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

createTextFrame

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


createTextContinuationFrame

public static 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 static Frame.Data.Binary createBinaryFrame(String s)
Create a binary data frame with the given bytes.


createBinaryContinuationFrame

public static Frame.Data.Binary createBinaryContinuationFrame(String s,
                                                              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.