Oracle NoSQL Database
version 11gR2.2.0.26

oracle.kv.lob
Class InputStreamVersion

java.lang.Object
  extended by 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
InputStreamVersion(InputStream inputStream, Version version)
          Used internally to create an object with an inputStream and version.
 
Method Summary
 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

Oracle NoSQL Database
version 11gR2.2.0.26

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