@PublicApi @NotThreadSafe public class FileOutStream extends AbstractOutStream
UnderStorageType is
UnderStorageType.SYNC_PERSIST, another stream will write the data to the under storage
system.| Modifier and Type | Field and Description |
|---|---|
protected alluxio.AlluxioURI |
mUri |
mBytesWritten| Constructor and Description |
|---|
FileOutStream(alluxio.AlluxioURI path,
OutStreamOptions options,
FileSystemContext context)
Creates a new file output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Aborts the output stream.
|
void |
close() |
void |
flush() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
getBytesWrittenpublic FileOutStream(alluxio.AlluxioURI path,
OutStreamOptions options,
FileSystemContext context)
throws IOException
path - the file pathoptions - the client optionscontext - the file system contextIOExceptionpublic void cancel()
throws IOException
AbstractOutStreamcancel in interface Cancelablecancel in class AbstractOutStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic 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 OutputStreamIOExceptionCopyright © 2024. All Rights Reserved.