Package com.ocient.cli.extract
Class S3OutputStream
java.lang.Object
java.io.OutputStream
com.ocient.cli.extract.S3OutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class S3OutputStream extends OutputStream
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_BUFFER_SIZE -
Constructor Summary
Constructors Constructor Description S3OutputStream(software.amazon.awssdk.services.s3.S3Client s3Client, String bucket, String filePath) -
Method Summary
-
Field Details
-
DEFAULT_BUFFER_SIZE
protected static final int DEFAULT_BUFFER_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
S3OutputStream
public S3OutputStream(software.amazon.awssdk.services.s3.S3Client s3Client, String bucket, String filePath) throws IOException- Parameters:
s3Client- The AmazonS3 client. Created by the callerbucket- S3 bucketfilePath- path within the bucket- Throws:
IOException
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
public void flush()- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream
-
uploadPart
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-