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
IOException
public FileBufferedOutputStream(MLArray array) throws IOException
IOException
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 close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public long size() throws IOException
size
in class BufferedOutputStream
IOException
public ByteBuffer buffer() throws IOException
BufferedOutputStream
ByteBuffer
buffer
in class BufferedOutputStream
IOException
public void write(ByteBuffer byteBuffer) throws IOException
IOException
Copyright © 2015. All rights reserved.