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 Detail

      • StringBasedBlob

        public StringBasedBlob​(String value)
    • Method Detail

      • 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.