public class FileBufferedOutputStream extends BufferedOutputStream
OutputStream that is backed by a RandomAccessFile
and accessed with buffered access.| Constructor and Description |
|---|
FileBufferedOutputStream() |
FileBufferedOutputStream(MLArray array) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
buffer()
Returns the backing
ByteBuffer |
void |
close() |
void |
flush() |
long |
size() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(ByteBuffer byteBuffer) |
void |
write(int b) |
public FileBufferedOutputStream()
throws IOException
IOExceptionpublic FileBufferedOutputStream(MLArray array) throws IOException
IOExceptionpublic 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 close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic long size()
throws IOException
size in class BufferedOutputStreamIOExceptionpublic ByteBuffer buffer() throws IOException
BufferedOutputStreamByteBufferbuffer in class BufferedOutputStreamIOException - on underlying IOExceptionpublic void write(ByteBuffer byteBuffer) throws IOException
IOExceptionCopyright © 2018. All rights reserved.