public class DefaultWritableBuffer extends Object implements WritableBuffer
| Modifier and Type | Method and Description |
|---|---|
WritableByteChannel |
asChannel() |
OutputStream |
asOutputStream() |
WritableBuffer |
from(ReadableBuffer readable) |
protected WritableByteChannel |
getChannel() |
static WritableBuffer |
writeBuffer(OutputStream out) |
static WritableBuffer |
writeBuffer(WritableByteChannel c) |
static WritableBuffer |
writeBuffer(WritableByteChannel c,
long length) |
WritableBuffer |
writeBytes(byte[] bytes) |
WritableBuffer |
writeBytes(byte[] bytes,
int index,
int length) |
WritableBuffer |
writeBytes(ByteBuffer buffer) |
public static WritableBuffer writeBuffer(OutputStream out)
public static WritableBuffer writeBuffer(WritableByteChannel c)
public static WritableBuffer writeBuffer(WritableByteChannel c, long length)
protected WritableByteChannel getChannel()
public WritableBuffer writeBytes(byte[] bytes) throws IOException
writeBytes in interface WritableBufferIOExceptionpublic WritableBuffer writeBytes(byte[] bytes, int index, int length) throws IOException
writeBytes in interface WritableBufferIOExceptionpublic WritableBuffer writeBytes(ByteBuffer buffer) throws IOException
writeBytes in interface WritableBufferIOExceptionpublic OutputStream asOutputStream() throws IOException
asOutputStream in interface WritableBufferIOExceptionpublic WritableByteChannel asChannel() throws IOException
asChannel in interface WritableBufferIOExceptionpublic WritableBuffer from(ReadableBuffer readable) throws IOException
from in interface WritableBufferIOExceptionCopyright © 2011-2017 Analog Web Framework Development Team. All Rights Reserved.