org.apache.commons.codec.Encoder |
Known Indirect Subclasses
BCodec,
Base64,
BinaryCodec,
BinaryEncoder,
Caverphone,
DoubleMetaphone,
Hex,
Metaphone,
QCodec,
QuotedPrintableCodec,
RefinedSoundex,
Soundex,
StringEncoder,
URLCodec
BCodec |
Identical to the Base64 encoding defined by RFC
1521 and allows a character set to be specified. |
Base64 |
Provides Base64 encoding and decoding as defined by RFC 2045. |
BinaryCodec |
Translates between byte arrays and strings of "0"s and "1"s. |
BinaryEncoder |
Defines common encoding methods for byte array encoders. |
Caverphone |
Encodes a string into a Caverphone value. |
DoubleMetaphone |
Encodes a string into a double metaphone value. |
Hex |
Hex encoder and decoder. |
Metaphone |
Encodes a string into a metaphone value. |
QCodec |
Similar to the Quoted-Printable content-transfer-encoding defined in RFC 1521 and designed to allow text containing mostly ASCII
characters to be decipherable on an ASCII terminal without decoding. |
QuotedPrintableCodec |
Codec for the Quoted-Printable section of RFC 1521 . |
RefinedSoundex |
Encodes a string into a Refined Soundex value. |
Soundex |
Encodes a string into a Soundex value. |
StringEncoder |
Encodes a String into a String. |
URLCodec |
Implements the 'www-form-urlencoded' encoding scheme,
also misleadingly known as URL encoding. |
|
Class Overview
Provides the highest level of abstraction for Encoders.
This is the sister interface of Decoder
. Every implementation of
Encoder provides this common generic interface whic allows a user to pass a
generic Object to any Encoder implementation in the codec package.
Summary
Public Methods |
abstract
Object
|
encode(Object pObject)
Encodes an "Object" and returns the encoded content
as an Object.
|
Public Methods
public
abstract
Object
encode
(Object pObject)
Encodes an "Object" and returns the encoded content
as an Object. The Objects here may just be byte[]
or String
s depending on the implementation used.
Parameters
pObject
| An object ot encode |
Throws
EncoderException
| an encoder exception is
thrown if the encoder experiences a failure
condition during the encoding process.
|