|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.neu.ccs.codec.CodecUtilities
Contains utility methods providing
operations.
Nonstandard CODECs, that is, CODECs that are not included
in the JPT, must be installed using
the CODEC
method of this class.
Encoding and decoding operations must be performed
through the methods of this class,
and not directly through the methods
of an instance of any particular CODEC.installCodec
Codec| Constructor Summary | |
CodecUtilities()
|
|
| Method Summary | |
static String[] |
decode(String data)
Decodes the given encoded data String
into its (possibly encoded) component parts,
using the CODEC identified within the data
by its unique prefix. |
static String |
encode(String[] data)
Encodes the given array of (possibly encoded) data Strings
into a single encoded data String
using the default CODEC. |
static String |
encode(String[] data,
String codecID)
Encodes the given array of (possibly encoded) data Strings
into a single encoded data String
using the installed CODEC
with the given unique identifier. |
static String |
encode(Stringable[] data)
Encodes the given array of Stringable objects
into an encoded data String
using the default CODEC. |
static String |
encode(Stringable[] data,
String codecID)
Encodes the given array of Stringable objects
into a single encoded data String
using the installed CODEC
with the given unique identifier. |
static String |
getDefaultCodec()
Returns the unique identifier for the default installed CODEC. |
static void |
installCodec(Codec c)
Installs the given CODEC in the table of available CODECs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CodecUtilities()
| Method Detail |
public static String[] decode(String data)
String
into its (possibly encoded) component parts,
using the CODEC identified within the data
by its unique prefix.
data - a data String to be decoded
Stringsencode(String[]),
encode(String[], String),
encode(Stringable[]),
encode(Stringable[], String)public static String encode(String[] data)
Strings
into a single encoded data String
using the default CODEC.
data - an array of data Strings
to be encoded
Stringdecode(String),
encode(String[], String),
encode(Stringable[]),
encode(Stringable[], String)
public static String encode(String[] data,
String codecID)
Strings
into a single encoded data String
using the installed CODEC
with the given unique identifier.
data - an array of data Strings
to be encodedcodecID - the unique identifier for the desired CODEC
Stringdecode(String),
encode(String[]),
encode(Stringable[]),
encode(Stringable[], String)public static String encode(Stringable[] data)
Stringable objects
into an encoded data String
using the default CODEC.
data - an array of objects to be encoded
Stringdecode(String),
encode(String[]),
encode(String[], String),
encode(Stringable[], String)
public static String encode(Stringable[] data,
String codecID)
Stringable objects
into a single encoded data String
using the installed CODEC
with the given unique identifier.
data - an array of objects to be encodedcodecID - the unique identifier for the desired CODEC
Stringdecode(String),
encode(String[]),
encode(String[], String),
encode(Stringable[])public static String getDefaultCodec()
encode(String[], String),
encode(Stringable[], String)public static void installCodec(Codec c)
c - the desired CODEC object to install
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||