All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.analogweb.ReadableBuffer Maven / Gradle / Ivy

package org.analogweb;

import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
import java.nio.charset.Charset;

public interface ReadableBuffer {

    ReadableBuffer read(byte[] dst, int index, int length) throws IOException;

    ReadableBuffer read(ByteBuffer buffer) throws IOException;

    String asString(Charset charset) throws IOException;

    InputStream asInputStream() throws IOException;

    ReadableByteChannel asChannel() throws IOException;

    ReadableBuffer to(WritableBuffer writable) throws IOException;

    long getLength();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy