public class AbstractOutputStreamWriter extends Object implements FileWriter
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOutputStreamWriter(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocateByteBuffer(int size)
Allocates a byte buffer.
|
void |
close() |
protected static OutputStream |
newAdapter(FileWriter out) |
int |
write(ByteBuffer data) |
protected AbstractOutputStreamWriter(OutputStream out) throws IOException
IOExceptionpublic int write(ByteBuffer data) throws IOException
write in interface FileWriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic ByteBuffer allocateByteBuffer(int size)
FileWriterallocateByteBuffer in interface FileWritersize - The size of the buffer.protected static OutputStream newAdapter(FileWriter out)
Copyright © 2017. All rights reserved.