public abstract class BufferDecoder
extends java.lang.Object
| Constructor and Description |
|---|
BufferDecoder(BufferPointer sharedBuffer) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkBuffer(int needBytes)
This should only be used when a small number of bytes is required
(substantially smaller than bufferSize.
|
protected abstract int |
eofCheck(java.io.EOFException e,
int start,
int index,
int length) |
protected int |
read(boolean[] b,
int start,
int length) |
protected int |
read(byte[] buf,
int offset,
int len) |
protected int |
read(char[] c,
int start,
int length) |
protected int |
read(double[] d,
int start,
int length) |
protected int |
read(float[] f,
int start,
int length) |
protected int |
read(int[] i,
int start,
int length) |
protected int |
read(long[] l,
int start,
int length) |
protected int |
read(short[] s,
int start,
int length) |
protected boolean |
readBoolean() |
protected char |
readChar() |
protected double |
readDouble() |
protected float |
readFloat() |
protected void |
readFully(byte[] b,
int off,
int len) |
protected int |
readInt() |
protected long |
readLArray(java.lang.Object o) |
protected long |
readLong() |
protected short |
readShort() |
public BufferDecoder(BufferPointer sharedBuffer)
protected abstract void checkBuffer(int needBytes)
throws java.io.IOException
needBytes - the number of bytes needed for the next operation.java.io.IOException - if the buffer could not be filledprotected abstract int eofCheck(java.io.EOFException e,
int start,
int index,
int length)
throws java.io.EOFException
java.io.EOFExceptionprotected int read(boolean[] b,
int start,
int length)
throws java.io.IOException
java.io.IOExceptionprotected int read(byte[] buf,
int offset,
int len)
throws java.io.IOException
java.io.IOExceptionprotected int read(char[] c,
int start,
int length)
throws java.io.IOException
java.io.IOExceptionprotected int read(double[] d,
int start,
int length)
throws java.io.IOException
java.io.IOExceptionprotected int read(float[] f,
int start,
int length)
throws java.io.IOException
java.io.IOExceptionprotected int read(int[] i,
int start,
int length)
throws java.io.IOException
java.io.IOExceptionprotected int read(long[] l,
int start,
int length)
throws java.io.IOException
java.io.IOExceptionprotected int read(short[] s,
int start,
int length)
throws java.io.IOException
java.io.IOExceptionprotected boolean readBoolean()
throws java.io.IOException
java.io.IOException - if the underlying operation failsprotected char readChar()
throws java.io.IOException
java.io.IOException - if the underlying operation failsprotected int readInt()
throws java.io.IOException
java.io.IOException - if the underlying operation failsprotected long readLArray(java.lang.Object o)
throws java.io.IOException
java.io.IOExceptionprotected long readLong()
throws java.io.IOException
java.io.IOException - if the underlying operation failsprotected double readDouble()
throws java.io.IOException
java.io.IOExceptionprotected float readFloat()
throws java.io.IOException
java.io.IOExceptionprotected void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
java.io.IOExceptionprotected short readShort()
throws java.io.IOException
java.io.IOException - if the underlying operation fails