com.croftsoft.core.net
Class URLCoder

java.lang.Object
  extended by com.croftsoft.core.net.URLCoder

public final class URLCoder
extends Object

Java 1.1 substitute for URLDecoder and URLEncoder.

The classes java.net.URLDecoder and java.net.URLEncoder were not available until Java 1.2. This class provides a substitute for those programs which must use the Java 1.1 API.

Version:
2000-04-21
See Also:
URLDecoder, URLEncoder
Author:
David W. Croft

Method Summary
static String decode(String s)
          Performs the equivalent of java.net.URLDecoder.decode().
static String encode(String s)
          Performs the equivalent of java.net.URLEncoder.encode().
static void main(String[] args)
          Displays the encoded value of the first argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
Displays the encoded value of the first argument.


decode

public static String decode(String s)
Performs the equivalent of java.net.URLDecoder.decode().


encode

public static String encode(String s)
Performs the equivalent of java.net.URLEncoder.encode().


CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)