Class ArrayBasedBlob

  • All Implemented Interfaces:
    Blob

    public class ArrayBasedBlob
    extends AbstractBlob
    This Blob implementations is based on an array of bytes.
    • Constructor Detail

      • ArrayBasedBlob

        public ArrayBasedBlob​(byte[] value)
    • Method Detail

      • getNewStream

        @NotNull
        public @NotNull java.io.InputStream getNewStream()
        Description copied from interface: Blob
        Returns a new stream for this blob. The streams returned from multiple calls to this method are byte wise equals. That is, subsequent calls to read return the same sequence of bytes as long as neither call throws an exception.
        Returns:
        a new stream for this blob
      • length

        public long length()
        Description copied from interface: Blob
        Returns the length of this blob or -1 if unknown.
        Returns:
        the length of this blob.