com.webmethods.rtl.encode
Class BASE64Encoder
java.lang.Object
com.webmethods.rtl.encode.Encoder
com.webmethods.rtl.encode.BASE64Encoder
public class BASE64Encoder
- extends Encoder
Method Summary |
int |
decode(char[] src,
int soffset,
int length,
Writer writer)
Decodes from the format. |
int |
encode(char[] src,
int soffset,
int length,
Writer writer)
Encodes to the format. |
static Encoder |
encoder()
Returns the encoder instance. |
Methods inherited from class com.webmethods.rtl.encode.Encoder |
decode, decode, decode, decode, decode, decode, encode, encode, encode, encode, encode, encode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SYSTEM_ENCODING
public static final String SYSTEM_ENCODING
- See Also:
- Constant Field Values
encoder
protected static Encoder encoder
BASE64Encoder
public BASE64Encoder()
encoder
public static Encoder encoder()
- Returns the encoder instance.
decode
public int decode(char[] src,
int soffset,
int length,
Writer writer)
throws IOException
- Decodes from the format.
- Specified by:
decode
in class Encoder
- Parameters:
src
- Char array to decode.soffset
- Offset in the src array at which to begin reading.length
- Length of src array to decode.writer
- Writer in which to write the decoded chars.
- Returns:
- Length of chars written to writer.
- Throws:
IOException
encode
public int encode(char[] src,
int soffset,
int length,
Writer writer)
throws IOException
- Encodes to the format.
- Specified by:
encode
in class Encoder
- Parameters:
src
- Char array to encode.soffset
- Offset in the src array at which to begin reading.length
- Length of src array to encode.writer
- Writer in which to write the encoded chars.
- Returns:
- Length of chars written to writer.
- Throws:
IOException