Package org.analogweb.netty
Class ByteBufWritableBuffer
- java.lang.Object
-
- org.analogweb.netty.ByteBufWritableBuffer
-
- All Implemented Interfaces:
org.analogweb.WritableBuffer
public class ByteBufWritableBuffer extends Object implements org.analogweb.WritableBuffer
- Author:
- y2k2mt
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WritableByteChannelasChannel()OutputStreamasOutputStream()org.analogweb.WritableBufferfrom(org.analogweb.ReadableBuffer readable)protected io.netty.buffer.ByteBufgetByteBuf()static ByteBufWritableBufferwriteBuffer(io.netty.buffer.ByteBuf byteBuf)org.analogweb.WritableBufferwriteBytes(byte[] bytes)org.analogweb.WritableBufferwriteBytes(byte[] bytes, int index, int length)org.analogweb.WritableBufferwriteBytes(ByteBuffer buffer)
-
-
-
Method Detail
-
writeBuffer
public static ByteBufWritableBuffer writeBuffer(io.netty.buffer.ByteBuf byteBuf)
-
getByteBuf
protected io.netty.buffer.ByteBuf getByteBuf()
-
writeBytes
public org.analogweb.WritableBuffer writeBytes(byte[] bytes) throws IOException- Specified by:
writeBytesin interfaceorg.analogweb.WritableBuffer- Throws:
IOException
-
writeBytes
public org.analogweb.WritableBuffer writeBytes(byte[] bytes, int index, int length) throws IOException- Specified by:
writeBytesin interfaceorg.analogweb.WritableBuffer- Throws:
IOException
-
writeBytes
public org.analogweb.WritableBuffer writeBytes(ByteBuffer buffer) throws IOException
- Specified by:
writeBytesin interfaceorg.analogweb.WritableBuffer- Throws:
IOException
-
asOutputStream
public OutputStream asOutputStream() throws IOException
- Specified by:
asOutputStreamin interfaceorg.analogweb.WritableBuffer- Throws:
IOException
-
asChannel
public WritableByteChannel asChannel() throws IOException
- Specified by:
asChannelin interfaceorg.analogweb.WritableBuffer- Throws:
IOException
-
from
public org.analogweb.WritableBuffer from(org.analogweb.ReadableBuffer readable) throws IOException- Specified by:
fromin interfaceorg.analogweb.WritableBuffer- Throws:
IOException
-
-