rdf4j-postgis
Version 0.1.0.0
|
Little endian Data input stream. More...
Public Member Functions | |
LEDataInputStream (final InputStream in) | |
long | getPosition () |
Get current stream position from the first written byte. More... | |
int | available () throws IOException |
final short | readShort () throws IOException |
short[] | readShorts (int nbValues) throws IOException |
Read multiple values in one call. More... | |
final int | readUnsignedShort () throws IOException |
int[] | readUnsignedShorts (int nbValues) throws IOException |
Read multiple values in one call. More... | |
final char | readChar () throws IOException |
final int | readInt () throws IOException |
int[] | readInts (int nbValues) throws IOException |
Read multiple values in one call. More... | |
final long | readLong () throws IOException |
long[] | readLongs (int nbValues) throws IOException |
Read multiple values in one call. More... | |
final float | readFloat () throws IOException |
float[] | readFloats (int nbValues) throws IOException |
Read multiple values in one call. More... | |
final double | readDouble () throws IOException |
double[] | readDoubles (int nbValues) throws IOException |
Read multiple values in one call. More... | |
final int | read (byte b[], int off, int len) throws IOException |
final void | readFully (byte b[]) throws IOException |
final void | readFully (byte b[], int off, int len) throws IOException |
final int | skipBytes (int n) throws IOException |
final void | skipFully (int n) throws IOException |
final boolean | readBoolean () throws IOException |
final byte | readByte () throws IOException |
int | read () throws IOException |
final int | readUnsignedByte () throws IOException |
final String | readLine () throws IOException |
final String | readUTF () throws IOException |
int | realign (int blockSize) throws IOException |
Ralign stream position, skipping any remaining byte to match given block size. More... | |
final void | close () throws IOException |
Static Public Member Functions | |
static short | readUnsignedByte (final byte[] buffer, final int offset) |
static short | readShort (final byte[] buffer, final int offset) |
static int | readUnsignedShort (final byte[] buffer, final int offset) |
static char | readChar (final byte[] buffer, final int offset) |
static int | readInt (final byte[] buffer, final int offset) |
static long | readUnsignedInt (final byte[] buffer, final int offset) |
static long | readLong (final byte[] buffer, final int offset) |
static float | readFloat (final byte[] buffer, final int offset) |
static double | readDouble (final byte[] buffer, final int offset) |
Private Attributes | |
final DataInputStream | ds |
final InputStream | in |
final byte | buffer [] = new byte[8] |
long | position = 0 |
Little endian Data input stream.
LEDataInputStream | ( | final InputStream | in | ) |
References LEDataInputStream.in.
int available | ( | ) | throws IOException |
References LEDataInputStream.ds.
final void close | ( | ) | throws IOException |
References LEDataInputStream.ds.
long getPosition | ( | ) |
Get current stream position from the first written byte.
References LEDataInputStream.position.
Referenced by LEDataInputStream.realign().
int read | ( | ) | throws IOException |
References LEDataInputStream.in, and LEDataInputStream.position.
final int read | ( | byte | b[], |
int | off, | ||
int | len | ||
) | throws IOException |
References LEDataInputStream.in, and LEDataInputStream.position.
final boolean readBoolean | ( | ) | throws IOException |
References LEDataInputStream.ds, and LEDataInputStream.position.
final byte readByte | ( | ) | throws IOException |
References LEDataInputStream.ds, and LEDataInputStream.position.
final char readChar | ( | ) | throws IOException |
References LEDataInputStream.buffer, LEDataInputStream.ds, and LEDataInputStream.position.
|
static |
References LEDataInputStream.buffer.
final double readDouble | ( | ) | throws IOException |
References LEDataInputStream.readLong().
Referenced by LEDataInputStream.readDoubles().
|
static |
References LEDataInputStream.buffer, and LEDataInputStream.readLong().
double [] readDoubles | ( | int | nbValues | ) | throws IOException |
Read multiple values in one call.
nbValues | number of valeus to read |
java.io.IOException |
References LEDataInputStream.readDouble().
final float readFloat | ( | ) | throws IOException |
References LEDataInputStream.readInt().
Referenced by LEDataInputStream.readFloats().
|
static |
References LEDataInputStream.buffer, and LEDataInputStream.readInt().
float [] readFloats | ( | int | nbValues | ) | throws IOException |
Read multiple values in one call.
nbValues | number of valeus to read |
java.io.IOException |
References LEDataInputStream.readFloat().
final void readFully | ( | byte | b[] | ) | throws IOException |
References LEDataInputStream.ds, and LEDataInputStream.position.
final void readFully | ( | byte | b[], |
int | off, | ||
int | len | ||
) | throws IOException |
References LEDataInputStream.ds, and LEDataInputStream.position.
final int readInt | ( | ) | throws IOException |
References LEDataInputStream.buffer, LEDataInputStream.ds, and LEDataInputStream.position.
Referenced by LEDataInputStream.readFloat(), and LEDataInputStream.readInts().
|
static |
References LEDataInputStream.buffer.
int [] readInts | ( | int | nbValues | ) | throws IOException |
Read multiple values in one call.
nbValues | number of valeus to read |
java.io.IOException |
References LEDataInputStream.readInt().
final String readLine | ( | ) | throws IOException |
References LEDataInputStream.ds.
final long readLong | ( | ) | throws IOException |
References LEDataInputStream.buffer, LEDataInputStream.ds, and LEDataInputStream.position.
Referenced by LEDataInputStream.readDouble(), and LEDataInputStream.readLongs().
|
static |
References LEDataInputStream.buffer.
long [] readLongs | ( | int | nbValues | ) | throws IOException |
Read multiple values in one call.
nbValues | number of valeus to read |
java.io.IOException |
References LEDataInputStream.readLong().
final short readShort | ( | ) | throws IOException |
References LEDataInputStream.buffer, LEDataInputStream.ds, and LEDataInputStream.position.
Referenced by LEDataInputStream.readShorts().
|
static |
References LEDataInputStream.buffer.
short [] readShorts | ( | int | nbValues | ) | throws IOException |
Read multiple values in one call.
nbValues | number of valeus to read |
java.io.IOException |
References LEDataInputStream.readShort().
final int readUnsignedByte | ( | ) | throws IOException |
References LEDataInputStream.ds, and LEDataInputStream.position.
|
static |
References LEDataInputStream.buffer.
|
static |
References LEDataInputStream.buffer.
final int readUnsignedShort | ( | ) | throws IOException |
References LEDataInputStream.buffer, LEDataInputStream.ds, and LEDataInputStream.position.
Referenced by LEDataInputStream.readUnsignedShorts().
|
static |
References LEDataInputStream.buffer.
int [] readUnsignedShorts | ( | int | nbValues | ) | throws IOException |
Read multiple values in one call.
nbValues | number of valeus to read |
java.io.IOException |
References LEDataInputStream.readUnsignedShort().
final String readUTF | ( | ) | throws IOException |
References LEDataInputStream.ds.
int realign | ( | int | blockSize | ) | throws IOException |
Ralign stream position, skipping any remaining byte to match given block size.
Older formats or javascript buffer requiere to be aligned on 2, 4 or 8 bytes (short,int,float,double) to read datas.
blockSize |
References LEDataInputStream.getPosition(), LEDataInputStream.position, and LEDataInputStream.skipFully().
final int skipBytes | ( | int | n | ) | throws IOException |
References LEDataInputStream.ds, and LEDataInputStream.position.
Referenced by LEDataInputStream.skipFully().
final void skipFully | ( | int | n | ) | throws IOException |
References LEDataInputStream.skipBytes().
Referenced by LEDataInputStream.realign().
|
private |
Referenced by LEDataInputStream.readChar(), LEDataInputStream.readDouble(), LEDataInputStream.readFloat(), LEDataInputStream.readInt(), LEDataInputStream.readLong(), LEDataInputStream.readShort(), LEDataInputStream.readUnsignedByte(), LEDataInputStream.readUnsignedInt(), and LEDataInputStream.readUnsignedShort().
|
private |
Referenced by LEDataInputStream.available(), LEDataInputStream.close(), LEDataInputStream.readBoolean(), LEDataInputStream.readByte(), LEDataInputStream.readChar(), LEDataInputStream.readFully(), LEDataInputStream.readInt(), LEDataInputStream.readLine(), LEDataInputStream.readLong(), LEDataInputStream.readShort(), LEDataInputStream.readUnsignedByte(), LEDataInputStream.readUnsignedShort(), LEDataInputStream.readUTF(), and LEDataInputStream.skipBytes().
|
private |
Referenced by LEDataInputStream.LEDataInputStream(), and LEDataInputStream.read().
|
private |
Referenced by LEDataInputStream.getPosition(), LEDataInputStream.read(), LEDataInputStream.readBoolean(), LEDataInputStream.readByte(), LEDataInputStream.readChar(), LEDataInputStream.readFully(), LEDataInputStream.readInt(), LEDataInputStream.readLong(), LEDataInputStream.readShort(), LEDataInputStream.readUnsignedByte(), LEDataInputStream.readUnsignedShort(), LEDataInputStream.realign(), and LEDataInputStream.skipBytes().