Package com.ocient.cli.extract
Class S3OutputStream
java.lang.Object
java.io.OutputStream
com.ocient.cli.extract.S3OutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionS3OutputStream(software.amazon.awssdk.services.s3.S3Client s3Client, String bucket, String filePath, int uploadPartSize, Optional<ExtractMetrics> metrics) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
S3OutputStream
public S3OutputStream(software.amazon.awssdk.services.s3.S3Client s3Client, String bucket, String filePath, int uploadPartSize, Optional<ExtractMetrics> metrics) throws IOException - Parameters:
s3Client- The AmazonS3 client. Created by the callerbucket- S3 bucketfilePath- path within the bucketmetrics-- 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
-