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 WritableByteChannel
asChannel()
OutputStream
asOutputStream()
org.analogweb.WritableBuffer
from(org.analogweb.ReadableBuffer readable)
protected io.netty.buffer.ByteBuf
getByteBuf()
static ByteBufWritableBuffer
writeBuffer(io.netty.buffer.ByteBuf byteBuf)
org.analogweb.WritableBuffer
writeBytes(byte[] bytes)
org.analogweb.WritableBuffer
writeBytes(byte[] bytes, int index, int length)
org.analogweb.WritableBuffer
writeBytes(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:
writeBytes
in interfaceorg.analogweb.WritableBuffer
- Throws:
IOException
-
writeBytes
public org.analogweb.WritableBuffer writeBytes(byte[] bytes, int index, int length) throws IOException
- Specified by:
writeBytes
in interfaceorg.analogweb.WritableBuffer
- Throws:
IOException
-
writeBytes
public org.analogweb.WritableBuffer writeBytes(ByteBuffer buffer) throws IOException
- Specified by:
writeBytes
in interfaceorg.analogweb.WritableBuffer
- Throws:
IOException
-
asOutputStream
public OutputStream asOutputStream() throws IOException
- Specified by:
asOutputStream
in interfaceorg.analogweb.WritableBuffer
- Throws:
IOException
-
asChannel
public WritableByteChannel asChannel() throws IOException
- Specified by:
asChannel
in interfaceorg.analogweb.WritableBuffer
- Throws:
IOException
-
from
public org.analogweb.WritableBuffer from(org.analogweb.ReadableBuffer readable) throws IOException
- Specified by:
from
in interfaceorg.analogweb.WritableBuffer
- Throws:
IOException
-
-