| java.lang.Object org.mmbase.util.transformers.ReaderTransformer org.mmbase.util.transformers.UrlEscaper
UrlEscaper | public class UrlEscaper extends ReaderTransformer (Code) | | Escapes and Unescapes undesirable characters using % (URLEncoding)
Contrary to java.net.URLEncoder, it does not encode '+'.
author: vpro (as org.mmbase.util.URLEscape, still present in SCAN application) author: Michiel Meeuwissen version: $Id: UrlEscaper.java,v 1.1 2007/07/24 09:57:43 michiel Exp $ |
main | public static void main(String args)(Code) | | Method for testing this class from the command line
|
transform | public Writer transform(Reader r, Writer w)(Code) | | Escape a url.
Replaces 'invalid characters' with their Escaped code, i.e.
the questionmark (?) is escaped with %3F.
|
transformBack | public Writer transformBack(Reader reader, Writer w)(Code) | | Unescape a url.
Replaces escapesequenced with the actual character.
i.e %3F is replaced with the the questionmark (?).
Parameters: url - the urls to unescape the unescaped url. |
|
|