com.acsinet_solutions.util.text
Class Codec

java.lang.Object
  extended by com.acsinet_solutions.util.text.Codec

public final class Codec
extends java.lang.Object

Generic and simple encoding and decoding facilities based on java.net encoding, but with an optional prefix that inicates if the decoding is necessary

Author:
Santiago Arriaga

Constructor Summary
Codec()
           
 
Method Summary
static java.lang.String getDecoded(java.lang.String str)
          Perform the decoding only if necessary ( only when the prefix is detected ).
static java.lang.String getEncoded(java.lang.String str)
          Perform the encoding and set the prefix to indicate the encoding is produced.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Codec

public Codec()
Method Detail

getEncoded

public static java.lang.String getEncoded(java.lang.String str)
Perform the encoding and set the prefix to indicate the encoding is produced.


getDecoded

public static java.lang.String getDecoded(java.lang.String str)
Perform the decoding only if necessary ( only when the prefix is detected ).