Package oracle.kv.lob

# Class InputStreamVersion

java.lang.Object
oracle.kv.lob.InputStreamVersion

public class InputStreamVersion extends Object
Holds a Stream and Version that are associated with a LOB.

An InputStreamVersion instance is returned by `KVLargeObject.getLOB(oracle.kv.Key, oracle.kv.Consistency, long, java.util.concurrent.TimeUnit)` as the current value (represented by the stream) and version associated with a given LOB. The version and inputStream properties will always be non-null.

IOExceptions thrown by this stream may wrap KVStore exceptions as described in the documentation for the `KVLargeObject.getLOB(oracle.kv.Key, oracle.kv.Consistency, long, java.util.concurrent.TimeUnit)` method.

Since:
  2.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `InputStreamVersion(InputStream inputStream, Version version)`
  Used internally to create an object with an inputStream and version.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `InputStream`
  `getInputStream()`
  Returns the InputStream part of the InputStream and Version pair.
  `Version`
  `getVersion()`
  Returns the Version of the InputStream and Version pair.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### InputStreamVersion

    public InputStreamVersion(InputStream inputStream, Version version)
    Used internally to create an object with an inputStream and version.

- ## Method Details

  - ### getInputStream

    public InputStream getInputStream()
    Returns the InputStream part of the InputStream and Version pair.

  - ### getVersion

    public Version getVersion()
    Returns the Version of the InputStream and Version pair.

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`