public final class UEncoder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UEncoder.SafeCharsSet |
| Constructor and Description |
|---|
UEncoder(UEncoder.SafeCharsSet safeCharsSet)
Create a UEncoder with an unmodifiable safe character set.
|
| Modifier and Type | Method and Description |
|---|---|
CharChunk |
encodeURL(String s,
int start,
int end)
URL Encode string, using a specified encoding.
|
protected void |
urlEncode(CharChunk out,
ByteChunk bb) |
public UEncoder(UEncoder.SafeCharsSet safeCharsSet)
safeCharsSet - safe characters for this encoderpublic CharChunk encodeURL(String s, int start, int end) throws IOException
s - string to be encodedstart - the beginning index, inclusiveend - the ending index, exclusiveIOException - If an I/O error occursprotected void urlEncode(CharChunk out, ByteChunk bb) throws IOException
IOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.