public final class UEncoder extends Object
Constructor and Description |
---|
UEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
addSafeCharacter(char c) |
String |
encodeURL(String uri)
Utility function to re-encode the URL.
|
void |
setEncoding(String s)
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
void |
urlEncode(Writer buf,
byte[] bytes,
int off,
int len) |
void |
urlEncode(Writer buf,
String s)
URL Encode string, using a specified encoding.
|
@Deprecated public void setEncoding(String s)
public void addSafeCharacter(char c)
public void urlEncode(Writer buf, String s) throws IOException
buf
- The writers
- string to be encodedIOException
- If an I/O error occurspublic void urlEncode(Writer buf, byte[] bytes, int off, int len) throws IOException
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.