Class BinaryBasedBlob
java.lang.Object
org.apache.jackrabbit.oak.plugins.value.BinaryBasedBlob
- All Implemented Interfaces:
org.apache.jackrabbit.oak.api.Blob
This Blob implementation is based on an underlying
Binary.
Any error accessing the underlying binary in getNewStream() will be
deferred to the returned input stream.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull InputStreamDelegates toBinary.getStream()and returns an input stream the always throws anIOExceptionif the underlying binary failed to produce one.longlength()Delegates toBinary.getSize()and returns -1 if that fails.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.oak.api.Blob
isInlined
-
Constructor Details
-
BinaryBasedBlob
-
-
Method Details
-
getNewStream
Delegates toBinary.getStream()and returns an input stream the always throws anIOExceptionif the underlying binary failed to produce one.- Specified by:
getNewStreamin interfaceorg.apache.jackrabbit.oak.api.Blob
-
length
public long length()Delegates toBinary.getSize()and returns -1 if that fails.- Specified by:
lengthin interfaceorg.apache.jackrabbit.oak.api.Blob
-
getReference
- Specified by:
getReferencein interfaceorg.apache.jackrabbit.oak.api.Blob- Returns:
null
-
getContentIdentity
- Specified by:
getContentIdentityin interfaceorg.apache.jackrabbit.oak.api.Blob- Returns:
null
-