Package org.eclipse.jetty.util
Class CharsetStringBuilder.UsAsciiStringBuilder
- java.lang.Object
-
- org.eclipse.jetty.util.CharsetStringBuilder.UsAsciiStringBuilder
-
- All Implemented Interfaces:
CharsetStringBuilder
- Enclosing interface:
- CharsetStringBuilder
public static class CharsetStringBuilder.UsAsciiStringBuilder extends java.lang.Object implements CharsetStringBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.CharsetStringBuilder
CharsetStringBuilder.DecoderStringBuilder, CharsetStringBuilder.Iso88591StringBuilder, CharsetStringBuilder.UsAsciiStringBuilder
-
-
Constructor Summary
Constructors Constructor Description UsAsciiStringBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(byte b)
void
append(char c)
void
append(java.lang.CharSequence chars, int offset, int length)
java.lang.String
build()
Build the completed string and reset the buffer.void
reset()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.CharsetStringBuilder
append, append, append
-
-
-
-
Method Detail
-
append
public void append(byte b)
- Specified by:
append
in interfaceCharsetStringBuilder
- Parameters:
b
- An encoded byte to append
-
append
public void append(char c)
- Specified by:
append
in interfaceCharsetStringBuilder
- Parameters:
c
- A decoded character to append
-
append
public void append(java.lang.CharSequence chars, int offset, int length)
- Specified by:
append
in interfaceCharsetStringBuilder
- Parameters:
chars
- sequence of decoded charactersoffset
- offset into the arraylength
- the number of character to append from the sequence.
-
build
public java.lang.String build()
Description copied from interface:CharsetStringBuilder
Build the completed string and reset the buffer.
- Specified by:
build
in interfaceCharsetStringBuilder
- Returns:
- The decoded built string which must be complete in regard to any multibyte sequences.
-
reset
public void reset()
- Specified by:
reset
in interfaceCharsetStringBuilder
-
-