Class BlobOutputStream

java.lang.Object
java.io.OutputStream
org.postgresql.largeobject.BlobOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class BlobOutputStream extends OutputStream
This implements a basic output stream that writes to a LargeObject.
  • Constructor Details

    • BlobOutputStream

      public BlobOutputStream(LargeObject lo)
      Create an OutputStream to a large object.
      Parameters:
      lo - LargeObject
    • BlobOutputStream

      public BlobOutputStream(LargeObject lo, int bufferSize)
      Create an OutputStream to a large object.
      Parameters:
      lo - LargeObject
      bufferSize - The size of the buffer for single-byte writes
  • Method Details