Class GCSOutputFile

  • All Implemented Interfaces:
    OutputFile

    public class GCSOutputFile
    extends java.lang.Object
    implements OutputFile
    • Method Detail

      • fromLocation

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

        public PositionOutputStream create()
        Create an output stream for the specified location if the target object does not exist in GCS at the time of invocation.
        Specified by:
        create in interface OutputFile
        Returns:
        output stream
      • toInputFile

        public InputFile toInputFile()
        Description copied from interface: OutputFile
        Return an InputFile for the location of this output file.
        Specified by:
        toInputFile in interface OutputFile
        Returns:
        an input file for the location of this output file
      • 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