railo.runtime.coder
Class Coder

java.lang.Object
  extended by railo.runtime.coder.Coder

public final class Coder
extends Object


Field Summary
static short ENCODING_BASE64
          Field ENCODING_BASE64
static short ENCODING_HEX
          Field ENCODING_HEX
static short ENCODING_UU
          Field ENCODING_UU
 
Constructor Summary
Coder()
           
 
Method Summary
static byte[] decode(short type, String value)
           
static byte[] decode(String type, String value)
           
static String encode(short type, byte[] value)
           
static String encode(String type, byte[] value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING_UU

public static final short ENCODING_UU
Field ENCODING_UU

See Also:
Constant Field Values

ENCODING_HEX

public static final short ENCODING_HEX
Field ENCODING_HEX

See Also:
Constant Field Values

ENCODING_BASE64

public static final short ENCODING_BASE64
Field ENCODING_BASE64

See Also:
Constant Field Values
Constructor Detail

Coder

public Coder()
Method Detail

decode

public static byte[] decode(String type,
                            String value)
                     throws CoderException
Parameters:
type -
value -
Returns:
Throws:
CoderException

decode

public static byte[] decode(short type,
                            String value)
                     throws CoderException
Parameters:
type -
value -
Returns:
Throws:
CoderException

encode

public static String encode(String type,
                            byte[] value)
                     throws CoderException
Parameters:
type -
value -
Returns:
Throws:
CoderException

encode

public static String encode(short type,
                            byte[] value)
                     throws CoderException
Parameters:
type -
value -
Returns:
Throws:
CoderException


Copyright © 2012 Railo