Top Fields Constructors Methods
org.eclipse.jetty.websocket.core.internal

public Class NullAppendable

extends Utf8StringBuilder
Class Inheritance
Imports
java.nio.charset.CharacterCodingException, java.util.function.Supplier, org.eclipse.jetty.util.Utf8StringBuilder

Field Summary

Inherited from org.eclipse.jetty.util.Utf8StringBuilder:
_stateLOGREPLACEMENT

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
append(CharSequence
sequence of decoded characters
chars
,
int
offset into the array
offset
,
int
the number of character to append from the sequence.
length
)

Overrides default org.eclipse.jetty.util.CharsetStringBuilder.append.

public void
public void
public void
append(String s, int offset, int length)

Overrides org.eclipse.jetty.util.Utf8StringBuilder.append.

protected void
protected void
public String
build()

Overrides org.eclipse.jetty.util.Utf8StringBuilder.build.

Implements org.eclipse.jetty.util.CharsetStringBuilder.build.

Build the completed string and reset the buffer.

public <X extends Throwable> String
takeCompleteString(Supplier<X>
A supplier of a Throwable to use if hasCodingErrors() returns true, or null for no error action
onCodingError
)

Overrides org.eclipse.jetty.util.Utf8StringBuilder.takeCompleteString.

Take the completely decoded string.

public <X extends Throwable> String
takePartialString(Supplier<X>
A supplier of a Throwable to use if hasCodingErrors() returns true, or null for no error action
onCodingError
)

Overrides org.eclipse.jetty.util.Utf8StringBuilder.takePartialString.

Take the partially decoded string.

public String
toCompleteString()

Overrides org.eclipse.jetty.util.Utf8StringBuilder.toCompleteString.

Get the completely decoded string, which is equivalent to calling complete() then toString().

public String
Inherited from org.eclipse.jetty.util.Utf8StringBuilder:
appendappendappendappendappendappendBytecheckCharAppendcompletehasCodingErrorsisCompletelengthpartialResetresettoString

Constructor Detail

NullAppendableback to summary
public NullAppendable()

Method Detail

appendback to summary
public void append(CharSequence chars, int offset, int length)

Overrides default org.eclipse.jetty.util.CharsetStringBuilder.append.

Parameters
chars:CharSequence

Doc from org.eclipse.jetty.util.CharsetStringBuilder.append.

sequence of decoded characters

offset:int

Doc from org.eclipse.jetty.util.CharsetStringBuilder.append.

offset into the array

length:int

Doc from org.eclipse.jetty.util.CharsetStringBuilder.append.

the number of character to append from the sequence.

Annotations
@Override
appendback to summary
public void append(char c)

Overrides org.eclipse.jetty.util.Utf8StringBuilder.append.

Implements org.eclipse.jetty.util.CharsetStringBuilder.append.

Parameters
c:char

Doc from org.eclipse.jetty.util.CharsetStringBuilder.append.

A decoded character to append

Annotations
@Override
appendback to summary
public void append(String s)

Overrides org.eclipse.jetty.util.Utf8StringBuilder.append.

Annotations
@Override
appendback to summary
public void append(String s, int offset, int length)

Overrides org.eclipse.jetty.util.Utf8StringBuilder.append.

Annotations
@Override
bufferAppendback to summary
protected void bufferAppend(char c)

Overrides org.eclipse.jetty.util.Utf8StringBuilder.bufferAppend.

Annotations
@Override
bufferResetback to summary
protected void bufferReset()

Overrides org.eclipse.jetty.util.Utf8StringBuilder.bufferReset.

Annotations
@Override
buildback to summary
public String build() throws CharacterCodingException

Overrides org.eclipse.jetty.util.Utf8StringBuilder.build.

Implements org.eclipse.jetty.util.CharsetStringBuilder.build.

Doc from org.eclipse.jetty.util.CharsetStringBuilder.build.

Build the completed string and reset the buffer.

Returns:String

The decoded built string which must be complete in regard to any multibyte sequences.

Annotations
@Override
Exceptions
CharacterCodingException:
If the bytes cannot be correctly decoded or a multibyte sequence is incomplete.
takeCompleteStringback to summary
public <X extends Throwable> String takeCompleteString(Supplier<X> onCodingError) throws Supplier-:X

Overrides org.eclipse.jetty.util.Utf8StringBuilder.takeCompleteString.

Doc from org.eclipse.jetty.util.Utf8StringBuilder.takeCompleteString.

Take the completely decoded string.

Parameters
<X>
The type of the exception thrown
onCodingError:Supplier<X>

A supplier of a Throwable to use if hasCodingErrors() returns true, or null for no error action

Returns:String

The complete string.

Annotations
@Override
takePartialStringback to summary
public <X extends Throwable> String takePartialString(Supplier<X> onCodingError) throws Supplier-:X

Overrides org.eclipse.jetty.util.Utf8StringBuilder.takePartialString.

Doc from org.eclipse.jetty.util.Utf8StringBuilder.takePartialString.

Take the partially decoded string.

Parameters
<X>
The type of the exception thrown
onCodingError:Supplier<X>

A supplier of a Throwable to use if hasCodingErrors() returns true, or null for no error action

Returns:String

The complete string.

Annotations
@Override
toCompleteStringback to summary
public String toCompleteString()

Overrides org.eclipse.jetty.util.Utf8StringBuilder.toCompleteString.

Doc from org.eclipse.jetty.util.Utf8StringBuilder.toCompleteString.

Get the completely decoded string, which is equivalent to calling complete() then toString().

Returns:String

The completely decoded string.

Annotations
@Override
toPartialStringback to summary
public String toPartialString()

Overrides org.eclipse.jetty.util.Utf8StringBuilder.toPartialString.

Returns:String

Doc from org.eclipse.jetty.util.Utf8StringBuilder.toPartialString.

The currently decoded string, excluding any partial sequences appended.

Annotations
@Override