Class StringBasedBlob

java.lang.Object
org.apache.jackrabbit.oak.plugins.memory.AbstractBlob
org.apache.jackrabbit.oak.plugins.memory.StringBasedBlob
All Implemented Interfaces:
Blob

@Deprecated(since="2025-04-15") public class StringBasedBlob extends AbstractBlob
Deprecated.
The Jackrabbit Oak Memory library is designed for Oak-internal use only and thus deprecated. It will not be part of the AEM SDK after October 2025.
This Blob implementations is based on a string.
  • Constructor Details

    • StringBasedBlob

      public StringBasedBlob(String value)
      Deprecated.
  • Method Details

    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class AbstractBlob
    • getNewStream

      @NotNull public @NotNull InputStream getNewStream()
      Deprecated.
      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()
      Deprecated.
      This implementation returns the number of bytes in the UTF-8 encoding of the underlying string.
      Returns:
      the length of this blob.