| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final CharsetDecoder | |
| private ByteBuffer | |
| private final String | |
| private final Charset |
| Access | Constructor and Description |
|---|---|
| public | TextFrame(Frame
original (text) frame. frame, ByteBuffer UTF-8 decoding remainder from previously processed frame. remainder)Constructor. |
| public | TextFrame(Frame
original (text) frame. frame, ByteBuffer UTF-8 decoding remainder from previously processed frame. remainder, boolean true when this frame is continuation frame, false otherwise.Constructor. |
| public | TextFrame(String
text message (will be encoded using strict UTF-8 encoding). message, boolean true when this frame is continuation frame, false otherwise.true when this frame is last in current partial message batch. Standard
(non-continuous) frames have this bit set to true.Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | |
| private static byte[] | |
| private ByteBuffer | |
| public ByteBuffer | Returns: UTF-8 decoding remainder. Used internally to decoding next incoming frame.Remainder after UTF-8 decoding. |
| public String | |
| public void | respond(TyrusWebSocket
socket on which the appropriate action will be performed. socket)Implements abstract org. Execution part of frame processing. |
| private static byte[] | |
| private static int | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| private String |
| continuation | back to summary |
|---|---|
| private final boolean continuation | |
| currentDecoder | back to summary |
|---|---|
| private final CharsetDecoder currentDecoder | |
| remainder | back to summary |
|---|---|
| private ByteBuffer remainder | |
| textPayload | back to summary |
|---|---|
| private final String textPayload | |
| utf8 | back to summary |
|---|---|
| private final Charset utf8 | |
| TextFrame | back to summary |
|---|---|
| public TextFrame(Frame frame, ByteBuffer remainder) Constructor.
| |
| TextFrame | back to summary |
|---|---|
| public TextFrame(Frame frame, ByteBuffer remainder, boolean continuation) Constructor.
| |
| TextFrame | back to summary |
|---|---|
| public TextFrame(String message, boolean continuation, boolean fin) Constructor.
| |
| copyOf | back to summary |
|---|---|
| private static byte[] copyOf(byte[] original, int newLength) | |
| encode | back to summary |
|---|---|
| private static byte[] encode(Charset charset, String string) | |
| getByteBuffer | back to summary |
|---|---|
| private ByteBuffer getByteBuffer(final byte[] data, ByteBuffer remainder) | |
| getRemainder | back to summary |
|---|---|
| public ByteBuffer getRemainder() Remainder after UTF-8 decoding. This might be removed in the future, if encoding part will be separated from text frame impl.
| |
| getTextPayload | back to summary |
|---|---|
| public String getTextPayload() Get text payload.
| |
| respond | back to summary |
|---|---|
| public void respond(TyrusWebSocket socket) Implements abstract org. Doc from org. Execution part of frame processing.
| |
| safeTrim | back to summary |
|---|---|
| private static byte[] safeTrim(byte[] ba, int len) | |
| scale | back to summary |
|---|---|
| private static int scale(int len, float expansionFactor) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| utf8Decode | back to summary |
|---|---|
| private String utf8Decode(boolean finalFragment, byte[] data, ByteBuffer remainder) | |