public final class WriteBufferManager extends Object
| Constructor and Description |
|---|
WriteBufferManager(FileChannel channel)
Creates a new WriteBufferManager that writes to the specified file
channel
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
flushes the cached contents into the channel.
|
void |
order(ByteOrder order)
Specifies the byte order.
|
void |
put(byte b)
Puts the specified byte at the current position
|
void |
put(byte[] bs)
Puts the specified bytes at the current position
|
void |
putDouble(double d)
Puts the specified double at the current position
|
void |
putInt(int value)
Puts the specified int at the current position
|
public WriteBufferManager(FileChannel channel) throws IOException
channel - IOExceptionpublic void put(byte b)
throws IOException
b - IOExceptionpublic void put(byte[] bs)
throws IOException
bs - IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void order(ByteOrder order)
ByteBufferorder - public void putInt(int value)
throws IOException
value - IOExceptionpublic void putDouble(double d)
throws IOException
d - IOExceptionCopyright © 2019 CNRS. All rights reserved.