public abstract class CharacterEncoder extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected PrintStream |
pStream |
| 构造器和说明 |
|---|
CharacterEncoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract int |
bytesPerAtom() |
protected abstract int |
bytesPerLine() |
String |
encode(byte[] aBuffer) |
void |
encode(byte[] aBuffer,
OutputStream aStream) |
String |
encode(ByteBuffer aBuffer) |
void |
encode(ByteBuffer aBuffer,
OutputStream aStream) |
void |
encode(InputStream inStream,
OutputStream outStream) |
protected abstract void |
encodeAtom(OutputStream aStream,
byte[] someBytes,
int anOffset,
int aLength) |
String |
encodeBuffer(byte[] aBuffer) |
void |
encodeBuffer(byte[] aBuffer,
OutputStream aStream) |
String |
encodeBuffer(ByteBuffer aBuffer) |
void |
encodeBuffer(ByteBuffer aBuffer,
OutputStream aStream) |
void |
encodeBuffer(InputStream inStream,
OutputStream outStream) |
protected void |
encodeBufferPrefix(OutputStream aStream) |
protected void |
encodeBufferSuffix(OutputStream aStream) |
protected void |
encodeLinePrefix(OutputStream aStream,
int aLength) |
protected void |
encodeLineSuffix(OutputStream aStream) |
protected int |
readFully(InputStream in,
byte[] buffer) |
protected PrintStream pStream
protected abstract int bytesPerAtom()
protected abstract int bytesPerLine()
protected void encodeBufferPrefix(OutputStream aStream) throws IOException
IOExceptionprotected void encodeBufferSuffix(OutputStream aStream) throws IOException
IOExceptionprotected void encodeLinePrefix(OutputStream aStream, int aLength) throws IOException
IOExceptionprotected void encodeLineSuffix(OutputStream aStream) throws IOException
IOExceptionprotected abstract void encodeAtom(OutputStream aStream, byte[] someBytes, int anOffset, int aLength) throws IOException
IOExceptionprotected int readFully(InputStream in, byte[] buffer) throws IOException
IOExceptionpublic void encode(InputStream inStream, OutputStream outStream) throws IOException
IOExceptionpublic void encode(byte[] aBuffer,
OutputStream aStream)
throws IOException
IOExceptionpublic String encode(byte[] aBuffer)
public void encode(ByteBuffer aBuffer, OutputStream aStream) throws IOException
IOExceptionpublic String encode(ByteBuffer aBuffer)
public void encodeBuffer(InputStream inStream, OutputStream outStream) throws IOException
IOExceptionpublic void encodeBuffer(byte[] aBuffer,
OutputStream aStream)
throws IOException
IOExceptionpublic String encodeBuffer(byte[] aBuffer)
public void encodeBuffer(ByteBuffer aBuffer, OutputStream aStream) throws IOException
IOExceptionpublic String encodeBuffer(ByteBuffer aBuffer)
Copyright © 2018. All rights reserved.