public class FileChannelWriter extends Object implements FileWriter
| Constructor and Description |
|---|
FileChannelWriter() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocateByteBuffer(int size)
Allocates a byte buffer.
|
void |
close() |
int |
write(ByteBuffer data) |
public int write(ByteBuffer data) throws IOException
write in interface FileWriterIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic ByteBuffer allocateByteBuffer(int size)
FileWriterallocateByteBuffer in interface FileWritersize - The size of the buffer.Copyright © 2016. All rights reserved.