public final class UEncoder extends Object
Constructor and Description |
---|
UEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
addSafeCharacter(char c) |
CharChunk |
encodeURL(String s,
int start,
int end)
URL Encode string, using a specified encoding.
|
void |
setEncoding(String s) |
protected void |
urlEncode(CharChunk out,
ByteChunk bb) |
public void setEncoding(String s)
public void addSafeCharacter(char c)
public CharChunk encodeURL(String s, int start, int end) throws IOException
buf
- The writers
- string to be encodedIOException
- If an I/O error occursprotected void urlEncode(CharChunk out, ByteChunk bb) throws IOException
IOException
Copyright © 2016 JBoss by Red Hat. All rights reserved.