Package de.bytefish.pgbulkinsert.pgsql
Class PgBinaryWriter
java.lang.Object
de.bytefish.pgbulkinsert.pgsql.PgBinaryWriter
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidstartRow(int numColumns) <TTargetType>
voidwrite(IValueHandler<TTargetType> handler, TTargetType value) voidwriteBoolean(boolean value) Writes primitive boolean to the output streamvoidwriteByte(int value) Writes primitive byte to the output streamvoidwriteDouble(double value) Writes primitive double to the output streamvoidwriteFloat(float value) Writes primitive float to the output streamvoidwriteInt(int value) Writes primitive integer to the output streamvoidwriteLong(long value) Writes primitive long to the output streamvoidWrites a Null Value.voidwriteShort(int value) Writes primitive short to the output stream
-
Constructor Details
-
PgBinaryWriter
-
PgBinaryWriter
-
-
Method Details
-
startRow
-
write
-
writeBoolean
Writes primitive boolean to the output stream- Parameters:
value- value to write
-
writeByte
Writes primitive byte to the output stream- Parameters:
value- value to write
-
writeShort
Writes primitive short to the output stream- Parameters:
value- value to write
-
writeInt
Writes primitive integer to the output stream- Parameters:
value- value to write
-
writeLong
Writes primitive long to the output stream- Parameters:
value- value to write
-
writeFloat
Writes primitive float to the output stream- Parameters:
value- value to write
-
writeDouble
Writes primitive double to the output stream- Parameters:
value- value to write
-
writeNull
Writes a Null Value. -
close
- Specified by:
closein interfaceAutoCloseable
-