|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
nom.tam.util.BufferedDataInputStream
public class BufferedDataInputStream
Field Summary |
---|
Fields inherited from class java.io.BufferedInputStream |
---|
buf, count, marklimit, markpos, pos |
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
BufferedDataInputStream(java.io.InputStream o)
Use the BufferedInputStream constructor |
|
BufferedDataInputStream(java.io.InputStream o,
int bufLength)
Use the BufferedInputStream constructor |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
This method is used to test and time the buffered data methods. |
protected int |
primitiveArrayRecurse(java.lang.Object o)
|
protected void |
primitiveEOFThrower()
|
void |
printStatus()
|
int |
read()
|
int |
read(byte[] buf,
int offset,
int len)
|
boolean |
readBoolean()
Read a boolean value |
protected int |
readBooleanArray(boolean[] b)
|
byte |
readByte()
|
char |
readChar()
|
protected int |
readCharArray(char[] c)
|
double |
readDouble()
|
protected int |
readDoubleArray(double[] d)
|
float |
readFloat()
|
protected int |
readFloatArray(float[] f)
|
void |
readFully(byte[] b)
|
void |
readFully(byte[] b,
int off,
int len)
|
int |
readInt()
|
protected int |
readIntArray(int[] i)
|
java.lang.String |
readLine()
Deprecated. |
long |
readLong()
|
protected int |
readLongArray(long[] l)
|
int |
readPrimitiveArray(java.lang.Object o)
This routine provides efficient reading of arrays of any primitive type. |
short |
readShort()
|
protected int |
readShortArray(short[] s)
|
int |
readUnsignedByte()
|
int |
readUnsignedShort()
|
java.lang.String |
readUTF()
|
long |
skip(long offset)
|
int |
skipBytes(int toSkip)
|
java.lang.String |
toString()
|
Methods inherited from class java.io.BufferedInputStream |
---|
available, close, mark, markSupported, reset |
Methods inherited from class java.io.FilterInputStream |
---|
read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BufferedDataInputStream(java.io.InputStream o)
public BufferedDataInputStream(java.io.InputStream o, int bufLength)
Method Detail |
---|
public int read(byte[] buf, int offset, int len) throws java.io.IOException
read
in class java.io.BufferedInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.BufferedInputStream
java.io.IOException
public long skip(long offset) throws java.io.IOException
skip
in class java.io.BufferedInputStream
java.io.IOException
public boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
b
- The value to be written. Externally true is represented as
a byte of 1 and false as a byte value of 0.
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 int readInt() throws java.io.IOException
readInt
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 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 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 toSkip) throws java.io.IOException
skipBytes
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 java.lang.String readLine() throws java.io.IOException
readLine
in interface java.io.DataInput
java.io.IOException
public int readPrimitiveArray(java.lang.Object o) throws java.io.IOException
o
- The object to be read. It must be an array of a primitive type,
or an array of Object's.
java.io.IOException
protected int primitiveArrayRecurse(java.lang.Object o) throws java.io.IOException
java.io.IOException
protected int readBooleanArray(boolean[] b) throws java.io.IOException
java.io.IOException
protected int readShortArray(short[] s) throws java.io.IOException
java.io.IOException
protected int readCharArray(char[] c) throws java.io.IOException
java.io.IOException
protected int readIntArray(int[] i) throws java.io.IOException
java.io.IOException
protected int readLongArray(long[] l) throws java.io.IOException
java.io.IOException
protected int readFloatArray(float[] f) throws java.io.IOException
java.io.IOException
protected int readDoubleArray(double[] d) throws java.io.IOException
java.io.IOException
protected void primitiveEOFThrower() throws java.io.EOFException
java.io.EOFException
public void printStatus()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |