class StreamReader implements Reader {

    public InputStream copyStream(OutputStream outStream) throws IOException
    {
        ByteBuffer buf = readStreamIntoBuffer();
        outStream.write(buf.array(), 0, buf.limit());
        return new ByteArrayInputStream(buf.array(), 0, buf.limit());
    }

    public  StreamReader(InputStream stream);
    public  StreamReader(InputStream stream, int contentLength);
    public  StreamReader(InputStream stream, int estimatedContentLength, int maxContentLength);

}