Class StringBasedBlob
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.memory.AbstractBlob
-
- org.apache.jackrabbit.oak.plugins.memory.StringBasedBlob
-
- All Implemented Interfaces:
org.apache.jackrabbit.oak.api.Blob
public class StringBasedBlob extends AbstractBlob
ThisBlobimplementations 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 InputStreamgetNewStream()This 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.StringtoString()-
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:
toStringin classAbstractBlob
-
getNewStream
@NotNull public @NotNull InputStream getNewStream()
This implementation returns the bytes of the UTF-8 encoding of the underlying string.
-
length
public long length()
This implementation returns the number of bytes in the UTF-8 encoding of the underlying string.
-
-