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 OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public 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 Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2019 Microsoft Corporation. All rights reserved.