Class PgBinaryWriter

java.lang.Object
de.bytefish.pgbulkinsert.pgsql.PgBinaryWriter
All Implemented Interfaces:
AutoCloseable

public class PgBinaryWriter extends Object implements AutoCloseable
  • Constructor Details

    • PgBinaryWriter

      public PgBinaryWriter(OutputStream out)
    • PgBinaryWriter

      public PgBinaryWriter(OutputStream out, int bufferSize)
  • Method Details

    • startRow

      public void startRow(int numColumns)
    • write

      public <TTargetType> void write(IValueHandler<TTargetType> handler, TTargetType value)
    • writeBoolean

      public void writeBoolean(boolean value)
      Writes primitive boolean to the output stream
      Parameters:
      value - value to write
    • writeByte

      public void writeByte(int value)
      Writes primitive byte to the output stream
      Parameters:
      value - value to write
    • writeShort

      public void writeShort(int value)
      Writes primitive short to the output stream
      Parameters:
      value - value to write
    • writeInt

      public void writeInt(int value)
      Writes primitive integer to the output stream
      Parameters:
      value - value to write
    • writeLong

      public void writeLong(long value)
      Writes primitive long to the output stream
      Parameters:
      value - value to write
    • writeFloat

      public void writeFloat(float value)
      Writes primitive float to the output stream
      Parameters:
      value - value to write
    • writeDouble

      public void writeDouble(double value)
      Writes primitive double to the output stream
      Parameters:
      value - value to write
    • writeNull

      public void writeNull()
      Writes a Null Value.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable