public class FastDataInputStream
extends java.io.InputStream
implements java.io.DataInput
| Constructor and Description |
|---|
FastDataInputStream() |
FastDataInputStream(java.io.InputStream innie) |
FastDataInputStream(java.io.InputStream innie,
int bufferSize) |
FastDataInputStream(int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getPosition() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
read(ByteBuffer buffer,
int numBytes) |
java.lang.String |
readASCII(int bytecount) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
FloatBuffer |
readFloats(int numFloats)
Reads an entire array of floats in at once and returns them as a
FloatBuffer - which you should treat as read only, here me?
|
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
short |
readInt16() |
int |
readInt32() |
int |
readInt8() |
java.lang.String |
readLine() |
int |
readLine(byte[] b)
Reads until it hits some end of line (\r, \n) character or until buffer
is full.
|
long |
readLong() |
short |
readShort() |
int |
readUInt16() |
long |
readUInt32() |
int |
readUInt8() |
int |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
CharBuffer |
readUTFAsBuffer() |
void |
reset() |
void |
setInput(java.io.InputStream innie) |
long |
skip(long n) |
int |
skipBytes(int n) |
public FastDataInputStream(int bufferSize)
public FastDataInputStream()
public FastDataInputStream(java.io.InputStream innie)
public FastDataInputStream(java.io.InputStream innie,
int bufferSize)
public void read(ByteBuffer buffer, int numBytes) throws java.io.IOException
java.io.IOExceptionpublic long getPosition()
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readLimit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic void readFully(byte[] b)
throws java.io.IOException
readFully in interface java.io.DataInputjava.io.IOExceptionpublic int readLine(byte[] b)
throws java.io.IOException
java.io.IOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
readFully in interface java.io.DataInputjava.io.IOExceptionpublic int skipBytes(int n)
throws java.io.IOException
skipBytes in interface java.io.DataInputjava.io.IOExceptionpublic boolean readBoolean()
throws java.io.IOException
readBoolean in interface java.io.DataInputjava.io.IOExceptionpublic byte readByte()
throws java.io.IOException
readByte in interface java.io.DataInputjava.io.IOExceptionpublic int readUnsignedByte()
throws java.io.IOException
readUnsignedByte in interface java.io.DataInputjava.io.IOExceptionpublic short readShort()
throws java.io.IOException
readShort in interface java.io.DataInputjava.io.IOExceptionpublic int readUnsignedShort()
throws java.io.IOException
readUnsignedShort in interface java.io.DataInputjava.io.IOExceptionpublic char readChar()
throws java.io.IOException
readChar in interface java.io.DataInputjava.io.IOExceptionpublic long readUnsignedInt()
throws java.io.IOException
java.io.IOExceptionpublic int readInt()
throws java.io.IOException
readInt in interface java.io.DataInputjava.io.IOExceptionpublic long readLong()
throws java.io.IOException
readLong in interface java.io.DataInputjava.io.IOExceptionpublic float readFloat()
throws java.io.IOException
readFloat in interface java.io.DataInputjava.io.IOExceptionpublic double readDouble()
throws java.io.IOException
readDouble in interface java.io.DataInputjava.io.IOExceptionpublic java.lang.String readLine()
throws java.io.IOException
readLine in interface java.io.DataInputjava.io.IOExceptionpublic java.lang.String readUTF()
throws java.io.IOException
readUTF in interface java.io.DataInputjava.io.IOExceptionpublic java.lang.String readASCII(int bytecount)
throws java.io.IOException
java.io.IOExceptionpublic int readUInt8()
throws java.io.IOException
java.io.IOExceptionpublic int readInt8()
throws java.io.IOException
java.io.IOExceptionpublic int readInt32()
throws java.io.IOException
java.io.IOExceptionpublic long readUInt32()
throws java.io.IOException
java.io.IOExceptionpublic short readInt16()
throws java.io.IOException
java.io.IOExceptionpublic int readUInt16()
throws java.io.IOException
java.io.IOExceptionpublic void setInput(java.io.InputStream innie)
public FloatBuffer readFloats(int numFloats) throws java.io.IOException
java.io.IOExceptionpublic CharBuffer readUTFAsBuffer() throws java.io.IOException
java.io.IOException