@NotThreadSafe
public final class PercentDecoder
extends java.lang.Object
| Constructor and Description |
|---|
PercentDecoder(java.nio.charset.CharsetDecoder charsetDecoder)
Construct a new PercentDecoder with default buffer sizes.
|
PercentDecoder(java.nio.charset.CharsetDecoder charsetDecoder,
int initialEncodedByteBufSize,
int decodedCharBufSize) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decode(java.lang.CharSequence input) |
public PercentDecoder(@Nonnull
java.nio.charset.CharsetDecoder charsetDecoder)
charsetDecoder - Charset to decode bytes into chars withPercentDecoder(CharsetDecoder, int, int)public PercentDecoder(@Nonnull
java.nio.charset.CharsetDecoder charsetDecoder,
int initialEncodedByteBufSize,
int decodedCharBufSize)
charsetDecoder - Charset to decode bytes into chars withinitialEncodedByteBufSize - Initial size of buffer that holds encoded bytesdecodedCharBufSize - Size of buffer that encoded bytes are decoded into@Nonnull
public java.lang.String decode(@Nonnull
java.lang.CharSequence input)
throws java.nio.charset.MalformedInputException,
java.nio.charset.UnmappableCharacterException
input - Input with %-encoded representation of characters in this instance's configured character set, e.g.
"%20" for a space characterjava.nio.charset.MalformedInputException - if decoder is configured to report errors and malformed input is detectedjava.nio.charset.UnmappableCharacterException - if decoder is configured to report errors and an unmappable character is
detected