Class ObjectRef


  • public final class ObjectRef
    extends java.lang.Object
    Represents a S3 Object referenced by Bucket and Key.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DELIMITER  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ObjectRef from​(java.lang.String copySource)
      Creates a ObjectRef expecting the given String represents the source as /{bucket}/{key}.
      java.lang.String getBucket()  
      java.lang.String getKey()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • from

        public static ObjectRef from​(java.lang.String copySource)
        Creates a ObjectRef expecting the given String represents the source as /{bucket}/{key}.
        Parameters:
        copySource - The object references.
        Returns:
        the ObjectRef
        Throws:
        java.lang.IllegalArgumentException - If copySource could not be parsed.
        java.lang.NullPointerException - If copySource is null.
      • getBucket

        public java.lang.String getBucket()
      • getKey

        public java.lang.String getKey()
      • toString

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