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:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-