クラス BlobInputStream

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

public class BlobInputStream extends InputStream
This is an implementation of an InputStream from a large object.
  • コンストラクタの詳細

    • BlobInputStream

      public BlobInputStream(LargeObject lo)
      パラメータ:
      lo - LargeObject to read from
    • BlobInputStream

      public BlobInputStream(LargeObject lo, int bsize)
      パラメータ:
      lo - LargeObject to read from
      bsize - buffer size
    • BlobInputStream

      public BlobInputStream(LargeObject lo, int bsize, long limit)
      パラメータ:
      lo - LargeObject to read from
      bsize - buffer size
      limit - max number of bytes to read
  • メソッドの詳細

    • read

      public int read() throws IOException
      The minimum required to implement input stream.
      定義:
      read クラス内 InputStream
      例外:
      IOException
    • read

      public int read(byte[] dest, int off, int len) throws IOException
      オーバーライド:
      read クラス内 InputStream
      例外:
      IOException
    • close

      public void close() throws IOException

      Closes this input stream and releases any system resources associated with the stream.

      The close method of InputStream does nothing.

      定義:
      close インタフェース内 AutoCloseable
      定義:
      close インタフェース内 Closeable
      オーバーライド:
      close クラス内 InputStream
      例外:
      IOException - if an I/O error occurs.
    • mark

      public void mark(int readlimit)

      Marks the current position in this input stream. A subsequent call to the reset method repositions this stream at the last marked position so that subsequent reads re-read the same bytes.

      The readlimit arguments tells this input stream to allow that many bytes to be read before the mark position gets invalidated.

      The general contract of mark is that, if the method markSupported returns true, the stream somehow remembers all the bytes read after the call to mark and stands ready to supply those same bytes again if and whenever the method reset is called. However, the stream is not required to remember any data at all if more than readlimit bytes are read from the stream before reset is called.

      Marking a closed stream should not have any effect on the stream.

      オーバーライド:
      mark クラス内 InputStream
      パラメータ:
      readlimit - the maximum limit of bytes that can be read before the mark position becomes invalid.
      関連項目:
    • reset

      public void reset() throws IOException
      Repositions this stream to the position at the time the mark method was last called on this input stream. NB: If mark is not called we move to the beginning.
      オーバーライド:
      reset クラス内 InputStream
      例外:
      IOException
      関連項目:
    • markSupported

      public boolean markSupported()
      Tests if this input stream supports the mark and reset methods. The markSupported method of InputStream returns false.
      オーバーライド:
      markSupported クラス内 InputStream
      戻り値:
      true if this true type supports the mark and reset method; false otherwise.
      関連項目: