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
This Blob implementations is based on a string.
  • Constructor Details

    • StringBasedBlob

      public StringBasedBlob(String value)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class AbstractBlob
    • 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.