Interface BinaryStream

All Known Implementing Classes:
ArrayBackedBinaryStream, StreamBackedBinaryStream

public interface BinaryStream
Wraps a binary stream to also provide the length which is needed when binding.
  • Method Summary

    Modifier and Type
    Method
    Description
    asBlob(LobCreator lobCreator)
    Use the given LobCreator to create a Blob with the same data as this binary stream.
    byte[]
    Access to the bytes.
    Retrieve the input stream.
    long
    Retrieve the length of the input stream
    void
    Release any underlying resources.
  • Method Details

    • getInputStream

      InputStream getInputStream()
      Retrieve the input stream.
      Returns:
      The input stream
    • getBytes

      byte[] getBytes()
      Access to the bytes.
      Returns:
      The bytes.
    • getLength

      long getLength()
      Retrieve the length of the input stream
      Returns:
      The input stream length
    • release

      void release()
      Release any underlying resources.
    • asBlob

      Blob asBlob(LobCreator lobCreator)
      Use the given LobCreator to create a Blob with the same data as this binary stream.
      Since:
      7.0