Class S3OutputFile

    • Method Detail

      • create

        public PositionOutputStream create()
        Create an output stream for the specified location if the target object does not exist in S3 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()
        Note: this may be stale if file was deleted since metadata is cached for size/existence checks.
        Returns:
        flag
      • getObjectMetadata

        protected software.amazon.awssdk.services.s3.model.HeadObjectResponse getObjectMetadata()
                                                                                         throws software.amazon.awssdk.services.s3.model.S3Exception
        Throws:
        software.amazon.awssdk.services.s3.model.S3Exception
      • toString

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