Package org.eclipse.jetty.util
Class CharsetStringBuilder.ReportingUtf8StringBuilder
java.lang.Object
org.eclipse.jetty.util.Utf8StringBuilder
org.eclipse.jetty.util.CharsetStringBuilder.ReportingUtf8StringBuilder
- All Implemented Interfaces:
CharsetStringBuilder
- Enclosing interface:
- CharsetStringBuilder
Extended Utf8StringBuilder that mimics
CodingErrorAction.REPORT
behaviour
for CharsetStringBuilder
methods.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.Utf8StringBuilder
Utf8StringBuilder.Utf8CharacterCodingException, Utf8StringBuilder.Utf8IllegalArgumentException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.CharsetStringBuilder
CharsetStringBuilder.DecoderStringBuilder, CharsetStringBuilder.Iso88591StringBuilder, CharsetStringBuilder.ReportingUtf8StringBuilder, CharsetStringBuilder.UsAsciiStringBuilder
-
Field Summary
Fields inherited from class org.eclipse.jetty.util.Utf8StringBuilder
_state, REPLACEMENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the completed string and reset the buffer.Get the completely decoded string, which is equivalent to callingUtf8StringBuilder.complete()
thenUtf8StringBuilder.toString()
.Methods inherited from class org.eclipse.jetty.util.Utf8StringBuilder
append, append, append, append, append, append, append, append, appendByte, bufferAppend, bufferReset, checkCharAppend, complete, hasCodingErrors, isComplete, length, partialReset, reset, takeCompleteString, takePartialString, toPartialString, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.CharsetStringBuilder
append
-
Constructor Details
-
ReportingUtf8StringBuilder
public ReportingUtf8StringBuilder()
-
-
Method Details
-
toCompleteString
Description copied from class:Utf8StringBuilder
Get the completely decoded string, which is equivalent to callingUtf8StringBuilder.complete()
thenUtf8StringBuilder.toString()
.- Overrides:
toCompleteString
in classUtf8StringBuilder
- Returns:
- The completely decoded string.
-
build
Description copied from interface:CharsetStringBuilder
Build the completed string and reset the buffer.
- Specified by:
build
in interfaceCharsetStringBuilder
- Overrides:
build
in classUtf8StringBuilder
- 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.
-