public class Utf8PartialBuilder extends Object
Utf8StringBuilder
, but allowing partially constructed Strings without throwing
Exceptions for incomplete UTF8 sequences.
A call to toPartialString(ByteBuffer)
will return the section of the String from the start to the last
completed UTF8 sequence. Leaving incomplete sequences for a subsequent call to complete.
Constructor and Description |
---|
Utf8PartialBuilder() |
Modifier and Type | Method and Description |
---|---|
String |
toPartialString(ByteBuffer buf) |
public String toPartialString(ByteBuffer buf)
Copyright © 1995-2015 Webtide. All Rights Reserved.