@NotThreadSafe public class S3OutputStream extends OutputStream
close() method is called.| Constructor and Description |
|---|
S3OutputStream(String bucketName,
String key,
org.jets3t.service.S3Service client)
Constructs a new stream for writing a file.
|
public S3OutputStream(String bucketName, String key, org.jets3t.service.S3Service client) throws IOException
bucketName - the name of the bucketkey - the key of the fileclient - the JetS3t clientIOException - when a non-Alluxio related error occurspublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2016. All Rights Reserved.