Class StringBasedBlob
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.memory.AbstractBlob
-
- org.apache.jackrabbit.oak.plugins.memory.StringBasedBlob
-
- All Implemented Interfaces:
Blob
public class StringBasedBlob extends AbstractBlob
ThisBlob
implementations is based on a string.
-
-
Constructor Summary
Constructors Constructor Description StringBasedBlob(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.io.InputStream
getNewStream()
This implementation returns the bytes of the UTF-8 encoding of the underlying string.long
length()
This implementation returns the number of bytes in the UTF-8 encoding of the underlying string.java.lang.String
toString()
-
Methods inherited from class org.apache.jackrabbit.oak.plugins.memory.AbstractBlob
calculateSha256, equal, equals, getContentIdentity, getReference, hashCode
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractBlob
-
getNewStream
@NotNull public @NotNull java.io.InputStream 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.
-
-