public abstract class CharacterDecoder extends Object
| 构造器和说明 |
|---|
CharacterDecoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract int |
bytesPerAtom()
Return the number of bytes per atom of decoding
|
protected abstract int |
bytesPerLine()
Return the maximum number of bytes that can be encoded per line
|
protected void |
decodeAtom(PushbackInputStream aStream,
OutputStream bStream,
int l) |
byte[] |
decodeBuffer(InputStream in) |
void |
decodeBuffer(InputStream aStream,
OutputStream bStream) |
byte[] |
decodeBuffer(String inputString) |
protected void |
decodeBufferPrefix(PushbackInputStream aStream,
OutputStream bStream)
decode the beginning of the buffer, by default this is a NOP.
|
protected void |
decodeBufferSuffix(PushbackInputStream aStream,
OutputStream bStream)
decode the buffer suffix, again by default it is a NOP.
|
ByteBuffer |
decodeBufferToByteBuffer(InputStream in) |
ByteBuffer |
decodeBufferToByteBuffer(String inputString) |
protected int |
decodeLinePrefix(PushbackInputStream aStream,
OutputStream bStream) |
protected void |
decodeLineSuffix(PushbackInputStream aStream,
OutputStream bStream) |
protected int |
readFully(InputStream in,
byte[] buffer,
int offset,
int len) |
protected abstract int bytesPerAtom()
protected abstract int bytesPerLine()
protected void decodeBufferPrefix(PushbackInputStream aStream, OutputStream bStream) throws IOException
IOExceptionprotected void decodeBufferSuffix(PushbackInputStream aStream, OutputStream bStream) throws IOException
IOExceptionprotected int decodeLinePrefix(PushbackInputStream aStream, OutputStream bStream) throws IOException
IOExceptionprotected void decodeLineSuffix(PushbackInputStream aStream, OutputStream bStream) throws IOException
IOExceptionprotected void decodeAtom(PushbackInputStream aStream, OutputStream bStream, int l) throws IOException
IOExceptionprotected int readFully(InputStream in, byte[] buffer, int offset, int len) throws IOException
IOExceptionpublic void decodeBuffer(InputStream aStream, OutputStream bStream) throws IOException
IOExceptionpublic byte[] decodeBuffer(String inputString) throws IOException
IOExceptionpublic byte[] decodeBuffer(InputStream in) throws IOException
IOExceptionpublic ByteBuffer decodeBufferToByteBuffer(String inputString) throws IOException
IOExceptionpublic ByteBuffer decodeBufferToByteBuffer(InputStream in) throws IOException
IOExceptionCopyright © 2018. All rights reserved.