public class BinaryBasedBlob extends 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 |
|---|---|
String |
getContentIdentity() |
@NotNull InputStream |
getNewStream()
Delegates to
Binary.getStream() and returns an input stream the always
throws an IOException if the underlying binary failed to produce one. |
String |
getReference() |
long |
length()
Delegates to
Binary.getSize() and returns -1 if that fails. |
public BinaryBasedBlob(Binary binary)
@NotNull public @NotNull 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 String getReference()
getReference in interface org.apache.jackrabbit.oak.api.Blobnullpublic String getContentIdentity()
getContentIdentity in interface org.apache.jackrabbit.oak.api.BlobnullCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.