Class StringBasedBlob

  • All Implemented Interfaces:
    Blob

    public class StringBasedBlob
    extends AbstractBlob
    This Blob implementations is based on a string.
    • 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.
        Returns:
        a new stream for this blob
      • length

        public long length()
        This implementation returns the number of bytes in the UTF-8 encoding of the underlying string.
        Returns:
        the length of this blob.