java.io.Closeable, java.io.Flushable, java.lang.AutoCloseablepublic class AliyunOSSBlockOutputStream
extends java.io.OutputStream
close() method.| Constructor | Description |
|---|---|
AliyunOSSBlockOutputStream(org.apache.hadoop.conf.Configuration conf,
AliyunOSSFileSystemStore store,
java.lang.String key,
int blockSize,
org.apache.hadoop.fs.aliyun.oss.OSSDataBlocks.BlockFactory blockFactory,
BlockOutputStreamStatistics statistics,
java.util.concurrent.ExecutorService executorService) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
flush() |
The flush operation does not trigger an upload; that awaits
the next block being full.
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
public AliyunOSSBlockOutputStream(org.apache.hadoop.conf.Configuration conf,
AliyunOSSFileSystemStore store,
java.lang.String key,
int blockSize,
org.apache.hadoop.fs.aliyun.oss.OSSDataBlocks.BlockFactory blockFactory,
BlockOutputStreamStatistics statistics,
java.util.concurrent.ExecutorService executorService)
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
flush()
on the current block, leaving it to choose how to react.flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - Any IO problem.public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.