public class S3OutputStream extends OutputStream
| Modifier and Type | Class and Description |
|---|---|
private static class |
S3OutputStream.ConnectProgressListener |
private class |
S3OutputStream.MultipartUpload |
| Modifier and Type | Field and Description |
|---|---|
private String |
bucket |
private ByteBuffer |
buffer |
private boolean |
closed |
private String |
key |
private static org.slf4j.Logger |
log |
private S3OutputStream.MultipartUpload |
multiPartUpload |
private int |
partSize |
private com.amazonaws.event.ProgressListener |
progressListener |
private com.amazonaws.services.s3.AmazonS3 |
s3 |
| Constructor and Description |
|---|
S3OutputStream(String bucket,
String key,
com.amazonaws.services.s3.AmazonS3 s3)
Creates a new S3 output stream for an object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
private S3OutputStream.MultipartUpload |
newMultipartUpload() |
private void |
uploadPart() |
private void |
uploadPart(int size) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, writeprivate static final org.slf4j.Logger log
private final com.amazonaws.services.s3.AmazonS3 s3
private final String bucket
private final String key
private final com.amazonaws.event.ProgressListener progressListener
private final int partSize
private boolean closed
private ByteBuffer buffer
private S3OutputStream.MultipartUpload multiPartUpload
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionprivate void uploadPart()
throws IOException
IOExceptionprivate void uploadPart(int size)
throws IOException
IOExceptionpublic void commit()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionprivate S3OutputStream.MultipartUpload newMultipartUpload() throws IOException
IOExceptionCopyright © 2017 Apache NiFi Project. All rights reserved.