クラス BlobOutputStream

java.lang.Object
java.io.OutputStream
org.postgresql.largeobject.BlobOutputStream
すべての実装されたインタフェース:
Closeable, Flushable, AutoCloseable

public class BlobOutputStream extends OutputStream
This implements a basic output stream that writes to a LargeObject.
  • コンストラクタの詳細

    • BlobOutputStream

      public BlobOutputStream(LargeObject lo)
      Create an OutputStream to a large object.
      パラメータ:
      lo - LargeObject
    • BlobOutputStream

      public BlobOutputStream(LargeObject lo, int bufferSize)
      Create an OutputStream to a large object.
      パラメータ:
      lo - LargeObject
      bufferSize - The size of the buffer for single-byte writes
  • メソッドの詳細

    • write

      public void write(int b) throws IOException
      定義:
      write クラス内 OutputStream
      例外:
      IOException
    • write

      public void write(byte[] b, int off, int len) throws IOException
      オーバーライド:
      write クラス内 OutputStream
      例外:
      IOException
    • flush

      public void flush() throws IOException
      Flushes this output stream and forces any buffered output bytes to be written out. The general contract of flush is that calling it is an indication that, if any bytes previously written have been buffered by the implementation of the output stream, such bytes should immediately be written to their intended destination.
      定義:
      flush インタフェース内 Flushable
      オーバーライド:
      flush クラス内 OutputStream
      例外:
      IOException - if an I/O error occurs.
    • close

      public void close() throws IOException
      定義:
      close インタフェース内 AutoCloseable
      定義:
      close インタフェース内 Closeable
      オーバーライド:
      close クラス内 OutputStream
      例外:
      IOException