URL.openConnection() instead.
Please visit this webpage
for further details.@Deprecated public class BCodec extends java.lang.Object implements StringEncoder, StringDecoder
| Constructor and Description |
|---|
BCodec()
Deprecated.
Default constructor.
|
BCodec(java.lang.String charset)
Deprecated.
Constructor which allows for the selection of a default charset
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decode(java.lang.Object value)
Deprecated.
Decodes a Base64 object into its original form.
|
java.lang.String |
decode(java.lang.String value)
Deprecated.
Decodes a Base64 string into its original form.
|
java.lang.Object |
encode(java.lang.Object value)
Deprecated.
Encodes an object into its Base64 form using the default charset.
|
java.lang.String |
encode(java.lang.String value)
Deprecated.
Encodes a string into its Base64 form using the default charset.
|
java.lang.String |
encode(java.lang.String value,
java.lang.String charset)
Deprecated.
Encodes a string into its Base64 form using the specified charset.
|
java.lang.String |
getDefaultCharset()
Deprecated.
The default charset used for string decoding and encoding.
|
public BCodec()
public BCodec(java.lang.String charset)
charset - the default string charset to use.public java.lang.String encode(java.lang.String value,
java.lang.String charset)
throws EncoderException
value - string to convert to Base64 formcharset - the charset for pStringEncoderException - thrown if a failure condition is encountered during the encoding process.public java.lang.String encode(java.lang.String value)
throws EncoderException
encode in interface StringEncodervalue - string to convert to Base64 formEncoderException - thrown if a failure condition is encountered during the encoding process.public java.lang.String decode(java.lang.String value)
throws DecoderException
decode in interface StringDecodervalue - Base64 string to convert into its original formDecoderException - A decoder exception is thrown if a failure condition is encountered during the decode process.public java.lang.Object encode(java.lang.Object value)
throws EncoderException
encode in interface Encodervalue - object to convert to Base64 formEncoderException - thrown if a failure condition is encountered during the encoding process.public java.lang.Object decode(java.lang.Object value)
throws DecoderException
decode in interface Decodervalue - Base64 object to convert into its original formDecoderException - A decoder exception is thrown if a failure condition is encountered during the decode process.public java.lang.String getDefaultCharset()