@NotThreadSafe public final class GCSOutputStream extends OutputStream
close() method is called.| Constructor and Description |
|---|
GCSOutputStream(String bucketName,
String key,
org.jets3t.service.impl.rest.httpclient.GoogleStorageService client)
Constructs a new stream for writing a file.
|
public GCSOutputStream(String bucketName, String key, org.jets3t.service.impl.rest.httpclient.GoogleStorageService 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 © 2017. All Rights Reserved.