public final class CountingLittleEndianDataInputStream extends FilterInputStream implements DataInput
in| Modifier | Constructor and Description |
|---|---|
protected |
CountingLittleEndianDataInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
align4() |
void |
align8() |
int |
getPos() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar()
Reads a char as specified by
DataInputStream.readChar(), except
using little-endian byte order. |
double |
readDouble()
Reads a
double as specified by
DataInputStream.readDouble(), except using little-endian byte
order. |
float |
readFloat()
Reads a
float as specified by
DataInputStream.readFloat(), except using little-endian byte
order. |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt()
Reads an integer as specified by
DataInputStream.readInt(),
except using little-endian byte order. |
String |
readLine()
This method will throw an
UnsupportedOperationException. |
long |
readLong()
Reads a
long as specified by DataInputStream.readLong(),
except using little-endian byte order. |
short |
readShort()
Reads a
short as specified by
DataInputStream.readShort(), except using little-endian byte
order. |
int |
readUnsignedByte() |
int |
readUnsignedShort()
Reads an unsigned
short as specified by
DataInputStream.readUnsignedShort(), except using little-endian
byte order. |
String |
readUTF() |
int |
skipBytes(int n) |
available, close, mark, markSupported, read, read, read, reset, skipprotected CountingLittleEndianDataInputStream(InputStream in)
public void align8()
throws IOException
IOExceptionpublic void align4()
throws IOException
IOExceptionpublic int getPos()
public String readLine()
UnsupportedOperationException.public void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
short as specified by
DataInputStream.readUnsignedShort(), except using little-endian
byte order.readUnsignedShort in interface DataInputIOException - if an I/O error occurspublic int readInt()
throws IOException
DataInputStream.readInt(),
except using little-endian byte order.readInt in interface DataInputint in little-endian byte orderIOException - if an I/O error occurspublic long readLong()
throws IOException
long as specified by DataInputStream.readLong(),
except using little-endian byte order.readLong in interface DataInputlong in little-endian byte orderIOException - if an I/O error occurspublic float readFloat()
throws IOException
float as specified by
DataInputStream.readFloat(), except using little-endian byte
order.readFloat in interface DataInputfloat in little-endian byte orderIOException - if an I/O error occurspublic double readDouble()
throws IOException
double as specified by
DataInputStream.readDouble(), except using little-endian byte
order.readDouble in interface DataInputdouble in little-endian byte orderIOException - if an I/O error occurspublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic short readShort()
throws IOException
short as specified by
DataInputStream.readShort(), except using little-endian byte
order.readShort in interface DataInputshort in little-endian byte order.IOException - if an I/O error occurs.public char readChar()
throws IOException
DataInputStream.readChar(), except
using little-endian byte order.readChar in interface DataInputchar in little-endian byte orderIOException - if an I/O error occurspublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionCopyright © 2019 OpenSource BIM. All rights reserved.