public class BinaryBasedBlob extends java.lang.Object implements org.apache.jackrabbit.oak.api.Blob
Binary.
Any error accessing the underlying binary in getNewStream() will be
deferred to the returned input stream.
| Constructor and Description |
|---|
BinaryBasedBlob(Binary binary) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentIdentity() |
@NotNull java.io.InputStream |
getNewStream()
Delegates to
Binary.getStream() and returns an input stream the always
throws an IOException if the underlying binary failed to produce one. |
java.lang.String |
getReference() |
long |
length()
Delegates to
Binary.getSize() and returns -1 if that fails. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisInlinedpublic BinaryBasedBlob(Binary binary)
@NotNull public @NotNull java.io.InputStream getNewStream()
Binary.getStream() and returns an input stream the always
throws an IOException if the underlying binary failed to produce one.getNewStream in interface org.apache.jackrabbit.oak.api.Blobpublic long length()
Binary.getSize() and returns -1 if that fails.length in interface org.apache.jackrabbit.oak.api.Blobpublic java.lang.String getReference()
getReference in interface org.apache.jackrabbit.oak.api.Blobnullpublic java.lang.String getContentIdentity()
getContentIdentity in interface org.apache.jackrabbit.oak.api.BlobnullCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.