public class ADLFileOutputStream extends OutputStream
ADLFileOutputStream is used to add data to an Azure Data Lake File.
It is a buffering stream that accumulates user writes, and then writes to the server
in chunks. Default chunk size is 4MB.
Thread-safety: Note that methods in this class are NOT thread-safe.
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
setBufferSize(int newSize)
Sets the size of the internal write buffer (default is 4MB).
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public 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 setBufferSize(int newSize)
throws IOException
newSize - requested size of bufferIOException - throws ADLException if there is an errorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2019 Microsoft Corporation. All rights reserved.