|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
hu.netmind.util.LSBDataInputStream
public class LSBDataInputStream
This class reads data in LSB ordering.
| Constructor Summary | |
|---|---|
LSBDataInputStream(java.io.InputStream input)
Construct with a psysical input stream. |
|
| Method Summary | |
|---|---|
int |
available()
Proxy call to input stream. |
void |
close()
Close physical input stream. |
int |
read()
Proxy call to input stream. |
byte |
readByte()
Read a single byte. |
void |
readFully(byte[] b)
Read a buffer fully. |
void |
readFully(byte[] b,
int offset,
int length)
Read a buffer fully. |
int |
readInt()
Read an integer from stream. |
long |
readLong()
Read a long from stream. |
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LSBDataInputStream(java.io.InputStream input)
input - The psysical input stream.| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException - If an I/O error occurs.
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException - If an I/O error occurs.
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - If an I/O error occurs.
public int readInt()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
java.io.EOFException - If eof reached during read.
public long readLong()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
java.io.EOFException - If eof reached during read.
public byte readByte()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
java.io.EOFException - If eof reached during read.
public void readFully(byte[] b,
int offset,
int length)
throws java.io.IOException
b - The array to use.offset - The offset to start reading.length - Maximum bytes to read.
java.io.IOException - If an I/O error occurs.
java.io.EOFException - If eof reached during read.
public void readFully(byte[] b)
throws java.io.IOException
b - The array to use.
java.io.IOException - If an I/O error occurs.
java.io.EOFException - If eof reached during read.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||