Class FileContentPointer

    • Constructor Summary

      Constructors 
      Constructor Description
      FileContentPointer​(java.lang.String path)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getExternalUri()
      Get an externally accessible Uri for the data.
      java.lang.String getId()
      Get the unique id for the content.
      long getLastModified()
      Get the last modified time for the resource for this pointer.
      long getSize()
      Returns the size of the content pointer's content in bytes or -1 if unknown.
      java.lang.String getStoreName()
      Get the name of the store this pointer can be retrieved in.
      java.io.InputStream getStream()
      Get as an InputStream for reading.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • FileContentPointer

        public FileContentPointer​(java.lang.String path)
    • Method Detail

      • getExternalUri

        public java.lang.String getExternalUri()
        Description copied from interface: ContentPointer
        Get an externally accessible Uri for the data.
        Specified by:
        getExternalUri in interface ContentPointer
      • getId

        public java.lang.String getId()
        Description copied from interface: ContentPointer
        Get the unique id for the content.
        Specified by:
        getId in interface ContentPointer
      • getLastModified

        public long getLastModified()
        Description copied from interface: ContentPointer
        Get the last modified time for the resource for this pointer.
        Specified by:
        getLastModified in interface ContentPointer
      • getStoreName

        public java.lang.String getStoreName()
        Description copied from interface: ContentPointer
        Get the name of the store this pointer can be retrieved in.
        Specified by:
        getStoreName in interface ContentPointer
      • getSize

        public long getSize()
        Description copied from interface: ContentPointer
        Returns the size of the content pointer's content in bytes or -1 if unknown.
        Specified by:
        getSize in interface ContentPointer
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object