Package org.analogweb
Interface ReadableBuffer
-
- All Known Implementing Classes:
DefaultReadableBuffer
public interface ReadableBuffer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReadableByteChannel
asChannel()
InputStream
asInputStream()
String
asString(Charset charset)
long
getLength()
ReadableBuffer
read(byte[] dst, int index, int length)
ReadableBuffer
read(ByteBuffer buffer)
ReadableBuffer
to(WritableBuffer writable)
-
-
-
Method Detail
-
read
ReadableBuffer read(byte[] dst, int index, int length) throws IOException
- Throws:
IOException
-
read
ReadableBuffer read(ByteBuffer buffer) throws IOException
- Throws:
IOException
-
asString
String asString(Charset charset) throws IOException
- Throws:
IOException
-
asInputStream
InputStream asInputStream() throws IOException
- Throws:
IOException
-
asChannel
ReadableByteChannel asChannel() throws IOException
- Throws:
IOException
-
to
ReadableBuffer to(WritableBuffer writable) throws IOException
- Throws:
IOException
-
getLength
long getLength()
-
-