com.buck.common.codec
Class URLEncoded

java.lang.Object
  extended by com.buck.common.codec.Codec
      extended by com.buck.common.codec.URLEncoded
All Implemented Interfaces:
Comparable<Codec>

public class URLEncoded
extends Codec

Codec for the www-form-urlencoded encoding scheme. This encoding scheme should not be used to encode URI; instead users should use the PercentEncoded class for encoding URI components.

This codec is meant to be a replacement for standard Java classes URLEncoder and URLDecoder on older Java platforms, as these classes in Java versions below 1.4 rely on the platform's default charset encoding.

Author:
Robert J. Buck

Constructor Summary
URLEncoded()
           
 
Method Summary
 CodecDecoder newDecoder()
          Constructs a new decoder for this codec.
 CodecEncoder newEncoder()
          Constructs a new encoder for this codec.
 
Methods inherited from class com.buck.common.codec.Codec
aliases, availableCodecs, compareTo, equals, forName, hashCode, isSupported, name
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLEncoded

public URLEncoded()
Method Detail

newDecoder

public CodecDecoder newDecoder()
Description copied from class: Codec
Constructs a new decoder for this codec.

Specified by:
newDecoder in class Codec
Returns:
A new decoder for this codec

newEncoder

public CodecEncoder newEncoder()
Description copied from class: Codec
Constructs a new encoder for this codec.

Specified by:
newEncoder in class Codec
Returns:
A new encoder for this codec


Copyright © 2013. All Rights Reserved.