Class C4BlobKey

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class C4BlobKey
    extends C4NativePeer
    Blob Key

    A raw SHA-1 digest used as the unique identifier of a blob.

    • Constructor Summary

      Constructors 
      Constructor Description
      C4BlobKey​(java.lang.String str)
      Decodes a string of the form "sha1-"+base64 into a raw key.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.String toString()
      Encodes a blob key to a string of the form "sha1-"+base64.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • C4BlobKey

        public C4BlobKey​(@Nullable
                         java.lang.String str)
                  throws LiteCoreException
        Decodes a string of the form "sha1-"+base64 into a raw key.
        Throws:
        LiteCoreException
    • Method Detail

      • close

        @CallSuper
        public void close()
      • toString

        @NonNull
        public java.lang.String toString()
        Encodes a blob key to a string of the form "sha1-"+base64.
        Overrides:
        toString in class C4NativePeer