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 and Description
    `InputStreamVersion(InputStream inputStream, Version version)` Used internally to create an object with an inputStream and version.

  - ### Method Summary

    Methods
    Modifier and Type | Method and 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 Detail

    - #### InputStreamVersion

          public InputStreamVersion(InputStream inputStream,
                            Version version)

      Used internally to create an object with an inputStream and version.

  - ### Method Detail

    - #### 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`

Copyright (c) 2011, 2014 Oracle and/or its affiliates. All rights reserved.