@NotThreadSafe public class AlluxioFileOutStream extends FileOutStream
UnderStorageType is
UnderStorageType.SYNC_PERSIST, another stream will write the data to the under storage
system.| Modifier and Type | Field and Description |
|---|---|
protected AlluxioURI |
mUri |
mBytesWritten| Constructor and Description |
|---|
AlluxioFileOutStream(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) |
getBytesWrittenprotected final AlluxioURI mUri
public AlluxioFileOutStream(AlluxioURI path, OutStreamOptions options, FileSystemContext context) throws java.io.IOException
path - the file pathoptions - the client optionscontext - the file system contextjava.io.IOExceptionpublic void cancel()
throws java.io.IOException
FileOutStreamcancel in interface Cancelablecancel in class FileOutStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush 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)
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 © 2022. All Rights Reserved.