public class BinaryBasedBlob extends java.lang.Object implements 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()
A unique identifier of the content of this value.
|
@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()
Returns a secure reference to this blob, or
null if such
a reference is not available. |
long |
length()
Delegates to
Binary.getSize() and returns -1 if that fails. |
public 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 Blob
public long length()
Binary.getSize()
and returns -1 if that fails.public java.lang.String getReference()
Blob
null
if such
a reference is not available.getReference
in interface Blob
null
public java.lang.String getContentIdentity()
Blob
This method returns null if the identifier is unknown. The identifier may not always be available, for example if the value has not yet been saved or processed. Once an identifier is available, it will never change because values are immutable.
If two values have the same identifier, the content of the value is guaranteed to be the same. However it is not guaranteed that two values with the same content will return the same identifier.
The identifier is opaque, meaning it can have any format and size.
getContentIdentity
in interface Blob
null
Copyright © 2010 - 2020 Adobe. All Rights Reserved