Class RemoteBlob


  • public class RemoteBlob
    extends java.lang.Object
    Abstraction of a blob that is stored in the cloud (e.g. an Azure blob object, AWS S3 blob etc).
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RemoteBlob.Builder  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBucket()
      Get the bucket that this blob resides in.
      long getLastModified()
      Get the last modified time of the blob.
      java.lang.String getName()
      The name of the remote blob.
      long getSize()
      Get the size of the blob if available.
      RemoteFile toFile()
      Wrap it as a RemoteFile for standard FileFilter operations.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getName

        public java.lang.String getName()
        The name of the remote blob.
        Returns:
        the name
      • getLastModified

        public long getLastModified()
        Get the last modified time of the blob.
        Returns:
        the last modified time, or -1 if not known/unavailable
      • getSize

        public long getSize()
        Get the size of the blob if available.
        Returns:
        the size of the blob, or -1 if not available / unknown.
      • getBucket

        public java.lang.String getBucket()
        Get the bucket that this blob resides in.
        Returns:
        the bucket name, might be null.