Package org.analogweb
Interface WritableBuffer
-
- All Known Implementing Classes:
DefaultWritableBuffer
public interface WritableBuffer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WritableByteChannel
asChannel()
OutputStream
asOutputStream()
WritableBuffer
from(ReadableBuffer readable)
WritableBuffer
writeBytes(byte[] bytes)
WritableBuffer
writeBytes(byte[] bytes, int index, int length)
WritableBuffer
writeBytes(ByteBuffer buffer)
-
-
-
Method Detail
-
writeBytes
WritableBuffer writeBytes(byte[] bytes) throws IOException
- Throws:
IOException
-
writeBytes
WritableBuffer writeBytes(byte[] bytes, int index, int length) throws IOException
- Throws:
IOException
-
writeBytes
WritableBuffer writeBytes(ByteBuffer buffer) throws IOException
- Throws:
IOException
-
asOutputStream
OutputStream asOutputStream() throws IOException
- Throws:
IOException
-
asChannel
WritableByteChannel asChannel() throws IOException
- Throws:
IOException
-
from
WritableBuffer from(ReadableBuffer readable) throws IOException
- Throws:
IOException
-
-