|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.devexperts.qd.util.ByteArrayBuffer
com.devexperts.qd.util.ByteArrayDataInput
ByteArrayInput
class instead.
@Deprecated public class ByteArrayDataInput
The ByteArrayDataInput
implements DataInput
interface
using byte array buffer.
Nested Class Summary | |
---|---|
static class |
ByteArrayDataInput.EndOfBufferException
Deprecated. This exception is thrown when attempt to read past limit is made. |
Field Summary |
---|
Fields inherited from class com.devexperts.qd.util.ByteArrayBuffer |
---|
buffer, limit, position |
Constructor Summary | |
---|---|
ByteArrayDataInput()
Deprecated. |
Method Summary | |
---|---|
void |
expandLimit(int required_limit)
Deprecated. This implementation throws ByteArrayDataInput.EndOfBufferException |
protected int |
readAvailableBytes(int n)
Deprecated. Makes an attempt to read n bytes of data into the buffer. |
boolean |
readBoolean()
Deprecated. |
byte |
readByte()
Deprecated. |
char |
readChar()
Deprecated. |
double |
readDouble()
Deprecated. |
float |
readFloat()
Deprecated. |
void |
readFully(byte[] b)
Deprecated. |
void |
readFully(byte[] b,
int off,
int len)
Deprecated. |
int |
readInt()
Deprecated. |
java.lang.String |
readLine()
Deprecated. |
long |
readLong()
Deprecated. |
short |
readShort()
Deprecated. |
int |
readUnsignedByte()
Deprecated. |
int |
readUnsignedShort()
Deprecated. |
java.lang.String |
readUTF()
Deprecated. |
int |
skipBytes(int n)
Deprecated. |
Methods inherited from class com.devexperts.qd.util.ByteArrayBuffer |
---|
clear, copy, ensureCapacity, getBuffer, getLimit, getPosition, setBuffer, setLimit, setPosition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteArrayDataInput()
Method Detail |
---|
protected int readAvailableBytes(int n) throws java.io.IOException
n
bytes of data into the buffer.
This method may read smaller number of bytes (possibly zero) or larger
number of bytes depending on availability.
This method never throws an EOFException
.
The actual number of bytes read is returned.
This method is used by skipBytes(int)
and readLine()
methods instead of an expandLimit(int)
method.
The default implementation simply returns zero.
java.io.IOException
- if an I/O error occurs.public void readFully(byte[] b) throws java.io.IOException
readFully
in interface java.io.DataInput
java.io.IOException
public void readFully(byte[] b, int off, int len) throws java.io.IOException
readFully
in interface java.io.DataInput
java.io.IOException
public int skipBytes(int n) throws java.io.IOException
skipBytes
in interface java.io.DataInput
java.io.IOException
public boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
in interface java.io.DataInput
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface java.io.DataInput
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface java.io.DataInput
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface java.io.DataInput
java.io.IOException
public char readChar() throws java.io.IOException
readChar
in interface java.io.DataInput
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in interface java.io.DataInput
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in interface java.io.DataInput
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
in interface java.io.DataInput
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
in interface java.io.DataInput
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
readLine
in interface java.io.DataInput
java.io.IOException
public java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
java.io.IOException
public void expandLimit(int required_limit) throws java.io.IOException
ByteArrayDataInput.EndOfBufferException
expandLimit
in class ByteArrayBuffer
java.io.IOException
- if an I/O error occurs (expansion impossible).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |