rdf4j-postgis
Version 0.1.0.0
|
Little endian Data output stream. More...
Public Member Functions | |
LEDataOutputStream (OutputStream out) | |
long | getPosition () |
Get current stream position from the first written byte. More... | |
void | write (int b) throws IOException |
void | write (byte[] data, int offset, int length) throws IOException |
void | writeBoolean (boolean b) throws IOException |
void | writeByte (int b) throws IOException |
void | writeShort (int s) throws IOException |
final void | writeShorts (short[] values) throws IOException |
Write multiple values in one call. More... | |
void | writeUnsignedShort (int s) throws IOException |
final void | writeUnsignedShorts (int[] values) throws IOException |
Write multiple values in one call. More... | |
void | writeChar (int c) throws IOException |
void | writeInt (int i) throws IOException |
final void | writeInts (int[] values) throws IOException |
Write multiple values in one call. More... | |
void | writeLong (long l) throws IOException |
final void | writeLongs (long[] values) throws IOException |
Write multiple values in one call. More... | |
final void | writeFloat (float f) throws IOException |
final void | writeFloats (float[] values) throws IOException |
Write multiple values in one call. More... | |
final void | writeDouble (double d) throws IOException |
final void | writeDoubles (double[] values) throws IOException |
Write multiple values in one call. More... | |
void | writeBytes (String s) throws IOException |
void | writeChars (String s) throws IOException |
void | writeUTF (String s) throws IOException |
void | realign (int padding) throws IOException |
Align byte stream to a padding value, 0 bytes will be added until padding value is reached. More... | |
Private Attributes | |
long | position = 0 |
Little endian Data output stream.
LEDataOutputStream | ( | OutputStream | out | ) |
long getPosition | ( | ) |
Get current stream position from the first written byte.
References LEDataOutputStream.position.
void realign | ( | int | padding | ) | throws IOException |
Align byte stream to a padding value, 0 bytes will be added until padding value is reached.
Padding values are usually very small, 2, 4 or 8 bytes to ensure primitive types such as Short, Integer, Float are aligned in memory.
padding | value to realign. |
IOException |
References LEDataOutputStream.position, and LEDataOutputStream.write().
void write | ( | byte[] | data, |
int | offset, | ||
int | length | ||
) | throws IOException |
References LEDataOutputStream.position.
void write | ( | int | b | ) | throws IOException |
References LEDataOutputStream.position.
Referenced by LEDataOutputStream.realign(), and LEDataOutputStream.writeBoolean().
void writeBoolean | ( | boolean | b | ) | throws IOException |
References LEDataOutputStream.write().
void writeByte | ( | int | b | ) | throws IOException |
References LEDataOutputStream.position.
void writeBytes | ( | String | s | ) | throws IOException |
References LEDataOutputStream.position.
void writeChar | ( | int | c | ) | throws IOException |
References LEDataOutputStream.position.
void writeChars | ( | String | s | ) | throws IOException |
References LEDataOutputStream.position.
final void writeDouble | ( | double | d | ) | throws IOException |
References LEDataOutputStream.writeLong().
Referenced by LEDataOutputStream.writeDoubles().
final void writeDoubles | ( | double[] | values | ) | throws IOException |
Write multiple values in one call.
values | values to write |
IOException |
References LEDataOutputStream.writeDouble().
final void writeFloat | ( | float | f | ) | throws IOException |
References LEDataOutputStream.writeInt().
Referenced by LEDataOutputStream.writeFloats().
final void writeFloats | ( | float[] | values | ) | throws IOException |
Write multiple values in one call.
values | values to write |
IOException |
References LEDataOutputStream.writeFloat().
void writeInt | ( | int | i | ) | throws IOException |
References LEDataOutputStream.position.
Referenced by LEDataOutputStream.writeFloat(), and LEDataOutputStream.writeInts().
final void writeInts | ( | int[] | values | ) | throws IOException |
Write multiple values in one call.
values | values to write |
IOException |
References LEDataOutputStream.writeInt().
void writeLong | ( | long | l | ) | throws IOException |
References LEDataOutputStream.position.
Referenced by LEDataOutputStream.writeDouble(), and LEDataOutputStream.writeLongs().
final void writeLongs | ( | long[] | values | ) | throws IOException |
Write multiple values in one call.
values | values to write |
IOException |
References LEDataOutputStream.writeLong().
void writeShort | ( | int | s | ) | throws IOException |
References LEDataOutputStream.position.
Referenced by LEDataOutputStream.writeShorts(), and LEDataOutputStream.writeUnsignedShort().
final void writeShorts | ( | short[] | values | ) | throws IOException |
Write multiple values in one call.
values | values to write |
IOException |
References LEDataOutputStream.writeShort().
void writeUnsignedShort | ( | int | s | ) | throws IOException |
References LEDataOutputStream.writeShort().
Referenced by LEDataOutputStream.writeUnsignedShorts().
final void writeUnsignedShorts | ( | int[] | values | ) | throws IOException |
Write multiple values in one call.
values | values to write |
IOException |
References LEDataOutputStream.writeUnsignedShort().
void writeUTF | ( | String | s | ) | throws IOException |
|
private |
Referenced by LEDataOutputStream.getPosition(), LEDataOutputStream.realign(), LEDataOutputStream.write(), LEDataOutputStream.writeByte(), LEDataOutputStream.writeBytes(), LEDataOutputStream.writeChar(), LEDataOutputStream.writeChars(), LEDataOutputStream.writeInt(), LEDataOutputStream.writeLong(), and LEDataOutputStream.writeShort().