Class StringBasedBlob

  • All Implemented Interfaces:
    org.apache.jackrabbit.oak.api.Blob

    public class StringBasedBlob
    extends AbstractBlob
    This Blob 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 java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.jackrabbit.oak.api.Blob

        isInlined
    • Constructor Detail

      • StringBasedBlob

        public StringBasedBlob​(java.lang.String value)
    • Method Detail

      • getNewStream

        @NotNull
        public @NotNull java.io.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.