Class GCSInputFile

  • All Implemented Interfaces:
    InputFile

    public class GCSInputFile
    extends java.lang.Object
    implements InputFile
    • Method Detail

      • fromLocation

        public static GCSInputFile fromLocation​(java.lang.String location,
                                                com.google.cloud.storage.Storage storage,
                                                GCPProperties gcpProperties)
      • getLength

        public long getLength()
        Description copied from interface: InputFile
        Returns the total length of the file, in bytes
        Specified by:
        getLength in interface InputFile
        Returns:
        the total length of the file, in bytes
      • location

        public java.lang.String location()
      • exists

        public boolean exists()
      • getBlob

        protected com.google.cloud.storage.Blob getBlob()
      • toString

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