Module org.eclipse.jetty.util
Package org.eclipse.jetty.util
Class CharsetStringBuilder.DecoderStringBuilder
java.lang.Object
org.eclipse.jetty.util.CharsetStringBuilder.DecoderStringBuilder
- All Implemented Interfaces:
CharsetStringBuilder
- Enclosing interface:
CharsetStringBuilder
public static class CharsetStringBuilder.DecoderStringBuilder
extends Object
implements CharsetStringBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.CharsetStringBuilder
CharsetStringBuilder.DecoderStringBuilder, CharsetStringBuilder.Iso88591StringBuilder, CharsetStringBuilder.ReportingUtf8StringBuilder, CharsetStringBuilder.UsAsciiStringBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(byte b) voidappend(byte[] b, int offset, int length) voidappend(char c) voidappend(CharSequence chars, int offset, int length) voidappend(ByteBuffer buf) build()Build the completed string and reset the buffer.voidreset()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.CharsetStringBuilder
append
-
Constructor Details
-
DecoderStringBuilder
-
-
Method Details
-
append
public void append(byte b) - Specified by:
appendin interfaceCharsetStringBuilder
-
append
public void append(char c) - Specified by:
appendin interfaceCharsetStringBuilder
-
append
- Specified by:
appendin interfaceCharsetStringBuilder
-
append
public void append(byte[] b, int offset, int length) - Specified by:
appendin interfaceCharsetStringBuilder
-
append
- Specified by:
appendin interfaceCharsetStringBuilder
-
build
Description copied from interface:CharsetStringBuilderBuild the completed string and reset the buffer.
- Specified by:
buildin interfaceCharsetStringBuilder- Returns:
- The decoded built string which must be complete in regard to any multibyte sequences.
- Throws:
CharacterCodingException- If the bytes cannot be correctly decoded or a multibyte sequence is incomplete.
-
reset
public void reset()- Specified by:
resetin interfaceCharsetStringBuilder
-