Class StringBasedBlob
java.lang.Object
org.apache.jackrabbit.oak.plugins.memory.AbstractBlob
org.apache.jackrabbit.oak.plugins.memory.StringBasedBlob
- All Implemented Interfaces:
Blob
This
Blob implementations is based on a string.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull InputStreamThis implementation returns the bytes of the UTF-8 encoding of the underlying string.longlength()This implementation returns the number of bytes in the UTF-8 encoding of the underlying string.toString()Methods inherited from class org.apache.jackrabbit.oak.plugins.memory.AbstractBlob
calculateSha256, equal, equals, getContentIdentity, getReference, hashCode
-
Constructor Details
-
StringBasedBlob
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractBlob
-
getNewStream
This implementation returns the bytes of the UTF-8 encoding of the underlying string.- Returns:
- a new stream for this blob
-
length
public long length()This implementation returns the number of bytes in the UTF-8 encoding of the underlying string.- Returns:
- the length of this blob.
-