org.apache.tomcat.util.buf
public final class UEncoder extends java.lang.Object
| Constructor and Description |
|---|
UEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSafeCharacter(char c) |
java.lang.String |
encodeURL(java.lang.String uri)
Utility funtion to re-encode the URL.
|
void |
setEncoding(java.lang.String s) |
void |
urlEncode(java.io.Writer buf,
byte[] bytes,
int off,
int len) |
void |
urlEncode(java.io.Writer buf,
java.lang.String s)
URL Encode string, using a specified encoding.
|
public void setEncoding(java.lang.String s)
public void addSafeCharacter(char c)
public void urlEncode(java.io.Writer buf,
java.lang.String s)
throws java.io.IOException
buf - The writers - string to be encodedjava.io.IOException - If an I/O error occurspublic void urlEncode(java.io.Writer buf,
byte[] bytes,
int off,
int len)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String encodeURL(java.lang.String uri)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.