Base64, EightBit, HeaderLine, HTML, QuotedPrintable, SevenBitpublic abstract class Encoding
extends java.lang.Object
| コンストラクタ | 説明 |
|---|---|
Encoding() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
Buffer |
decode(byte[] in) |
This implementation just calls decode(in, 0, in.length).
|
Buffer |
decode(byte[] in,
int offset,
int length) |
|
Buffer |
decode(Buffer in) |
This implementation just calls decode(in.content, in.offset, in.length).
|
void |
decode(Buffer in,
Buffer out) |
|
abstract void |
decode(java.io.InputStream in,
Buffer out) |
|
Buffer |
decode(java.lang.String str) |
This implementation just converts the string to a byte array
and then calls encode(byte[]).
|
abstract java.lang.String |
encode(byte[] in) |
Encode a byte array to a ASCII or ISO-8859-1 String.
|
void |
encode(java.io.InputStream in,
java.io.Writer out) |
Encode an input stream of bytes to a ASCII or ISO-8859-1 String.
|
java.lang.String |
encode(java.lang.String str) |
Encode a (UTF-8) String to a ASCII or ISO-8859-1 String.
|
abstract java.lang.String |
getName() |
public abstract java.lang.String getName()
public abstract java.lang.String encode(byte[] in)
throws EncodingException
in - EncodingExceptionpublic java.lang.String encode(java.lang.String str)
throws EncodingException
str - EncodingExceptionencode(byte[])public void encode(java.io.InputStream in,
java.io.Writer out)
throws java.io.IOException
java.io.IOExceptionpublic Buffer decode(byte[] in) throws DecodingException
in - DecodingExceptiondecode(byte[], int, int)public Buffer decode(byte[] in, int offset, int length) throws DecodingException
in - offset - length - DecodingExceptionpublic Buffer decode(java.lang.String str) throws DecodingException
str - DecodingExceptiondecode(byte[], int, int)public Buffer decode(Buffer in) throws java.io.IOException
in - DecodingExceptionjava.io.IOExceptiondecode(byte[], int, int)public void decode(Buffer in, Buffer out) throws java.io.IOException
in - DecodingExceptionjava.io.IOExceptiondecode(byte[], int, int)public abstract void decode(java.io.InputStream in,
Buffer out)
throws java.io.IOException
in - DecodingExceptionjava.io.IOExceptiondecode(byte[], int, int)