import java.io.IOException;

/**
 * @author herald
 */
public class StreamBufferFactory {

    private StreamBufferFactory() {
    }

    public static StreamBuffer createStreamBuffer(int size) throws IOException {
        return new SynchronizedBuffer(new SimpleCyclicStreamByteBuffer(size));
    }
