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