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(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull 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.String
toString()
-
Methods inherited from class org.apache.jackrabbit.oak.plugins.memory.AbstractBlob
calculateSha256, equal, equals, getContentIdentity, getReference, hashCode, sha256
-
-
-
-
Constructor Detail
-
StringBasedBlob
public StringBasedBlob(String value)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classAbstractBlob
-
getNewStream
@NotNull public @NotNull 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.
-
-