|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.libxjava.io.BaseX
public abstract class BaseX
| Constructor Summary | |
|---|---|
protected |
BaseX()
|
| Method Summary | |
|---|---|
byte[] |
decode(byte[] b)
Same as decode(b, 0, b.length. |
byte[] |
decode(byte[] b,
int off,
int len)
Decodes the specified block of bytes and assumes that it holds all bytes to decode. |
void |
decode(InputStream in,
OutputStream out)
Decodes the data from in and writes it to out. |
byte[] |
encode(byte[] b)
Same as encode(b, 0, b.length. |
byte[] |
encode(byte[] b,
int off,
int len)
Encodes the specified block of bytes and assumes that it holds all bytes to encode. |
void |
encode(byte[] b,
int off,
int len,
OutputStream out)
|
void |
encode(InputStream in,
OutputStream out)
Encodes the data from in and writes it to out. |
protected abstract void |
internalDecode(InputStream in,
OutputStream out)
|
protected abstract void |
internalEncode(InputStream in,
OutputStream out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BaseX()
| Method Detail |
|---|
public final byte[] encode(byte[] b)
encode(b, 0, b.length.
encode(byte[], int, int)
public final byte[] encode(byte[] b,
int off,
int len)
public final void encode(byte[] b,
int off,
int len,
OutputStream out)
throws IOException
IOException
public final void encode(InputStream in,
OutputStream out)
throws IOException
in and writes it to out. It does so
until it reads an {code end-of-file} from in.
IOExceptionpublic final byte[] decode(byte[] b)
decode(b, 0, b.length.
decode(byte[], int, int)
public final byte[] decode(byte[] b,
int off,
int len)
public final void decode(InputStream in,
OutputStream out)
throws IOException
in and writes it to out. It does so
until it reads an {code end-of-file} from in.
IOException
protected abstract void internalDecode(InputStream in,
OutputStream out)
throws IOException
IOException
protected abstract void internalEncode(InputStream in,
OutputStream out)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||