Package com.mckoi.database
Class BlobStore.BlobRefImpl
- java.lang.Object
-
- com.mckoi.database.BlobStore.AbstractRef
-
- com.mckoi.database.BlobStore.BlobRefImpl
-
- All Implemented Interfaces:
BlobAccessor
,BlobRef
,Ref
- Enclosing class:
- BlobStore
private class BlobStore.BlobRefImpl extends BlobStore.AbstractRef implements BlobRef
An implementation of BlobRef used to represent a blob reference inside this blob store.
-
-
Field Summary
-
Fields inherited from class com.mckoi.database.BlobStore.AbstractRef
reference_id, size, type
-
-
Constructor Summary
Constructors Constructor Description BlobRefImpl(long reference_id, byte type, long size, boolean open_for_write)
Constructs the BlobRef implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getInputStream()
Returns an InputStream that allows us to read the contents of the blob from start to finish.-
Methods inherited from class com.mckoi.database.BlobStore.AbstractRef
assertIsOpen, close, complete, getID, getRawSize, getType, length, read, write
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.mckoi.database.global.BlobAccessor
length
-
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream()
Description copied from interface:BlobAccessor
Returns an InputStream that allows us to read the contents of the blob from start to finish. This object should be wrapped in a BufferedInputStream if 'read()' type efficiency is required.- Specified by:
getInputStream
in interfaceBlobAccessor
-
-