public abstract class BufferDecoder extends 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(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(Object o) |
protected long |
readLong() |
protected short |
readShort() |
public BufferDecoder(BufferPointer sharedBuffer)
protected abstract void checkBuffer(int needBytes) throws IOException
needBytes
- the number of bytes needed for the next operation.IOException
- if the buffer could not be filledprotected abstract int eofCheck(EOFException e, int start, int index, int length) throws EOFException
EOFException
protected int read(boolean[] b, int start, int length) throws IOException
IOException
protected int read(byte[] buf, int offset, int len) throws IOException
IOException
protected int read(char[] c, int start, int length) throws IOException
IOException
protected int read(double[] d, int start, int length) throws IOException
IOException
protected int read(float[] f, int start, int length) throws IOException
IOException
protected int read(int[] i, int start, int length) throws IOException
IOException
protected int read(long[] l, int start, int length) throws IOException
IOException
protected int read(short[] s, int start, int length) throws IOException
IOException
protected boolean readBoolean() throws IOException
IOException
- if the underlying operation failsprotected char readChar() throws IOException
IOException
- if the underlying operation failsprotected int readInt() throws IOException
IOException
- if the underlying operation failsprotected long readLArray(Object o) throws IOException
IOException
protected long readLong() throws IOException
IOException
- if the underlying operation failsprotected double readDouble() throws IOException
IOException
protected float readFloat() throws IOException
IOException
protected void readFully(byte[] b, int off, int len) throws IOException
IOException
protected short readShort() throws IOException
IOException
- if the underlying operation failsCopyright © 1996–2016 nom-tam-fits. All rights reserved.