Class S3UploadOutputStream
java.lang.Object
java.io.OutputStream
com.kingsrook.qqq.backend.module.filesystem.s3.utils.S3UploadOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
OutputStream implementation that knows how to stream data into a new S3 file.
This will be done using a multipart-upload if the contents are > 5MB - else
just a 1-time-call to PutObject
-
Constructor Summary
ConstructorsConstructorDescriptionS3UploadOutputStream
(com.amazonaws.services.s3.AmazonS3 amazonS3, String bucketName, String key, String contentType) Constructor -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
S3UploadOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-