ucar.nc2.util.net
Class URLencode

java.lang.Object
  extended by ucar.nc2.util.net.URLencode

Deprecated.

@Deprecated
public class URLencode
extends Object

Provides a method to encode any string into a URL-safe form. Non-ASCII characters are first encoded as sequences of two or three bytes, using the UTF-8 algorithm, before being encoded as %HH escapes.

Created: 17 April 1997 Author: Bert Bos

URLUTF8Encoder: http://www.w3.org/International/URLUTF8Encoder.java

Copyright 1997 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231


Constructor Summary
URLencode()
          Deprecated.  
 
Method Summary
static String escape(String s)
          Deprecated. Encode a string to the "x-www-form-urlencoded" form, enhanced with the UTF-8-in-URL proposal.
static void main(String[] args)
          Deprecated.  
static String unescape(String s)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLencode

public URLencode()
Deprecated. 
Method Detail

escape

public static String escape(String s)
Deprecated. 
Encode a string to the "x-www-form-urlencoded" form, enhanced with the UTF-8-in-URL proposal. This is what happens:

Parameters:
s - The string to be encoded
Returns:
The encoded string

unescape

public static String unescape(String s)
Deprecated. 

main

public static void main(String[] args)
Deprecated. 


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.