jadler-core/src/main/java/net/jadler/stubbing/Stubbing.java
@Override
    public ResponseStubbing withBody(final Reader reader) {
        try {
            final String responseBody;
            
            try {
                responseBody = IOUtils.toString(reader);
            } catch (final IOException ex) {
                throw new JadlerException("An error ocurred while reading the response body from "
                        + "the given Reader instance.", ex);
            }
            
            return this.withBody(responseBody);
        }
        finally {
            IOUtils.closeQuietly(reader);
        }
    }
@Override
    public ResponseStubbing withBody(final Reader reader) {
        try {
            final String responseBody;
            
            try {
                responseBody = IOUtils.toString(reader);
            } catch (final IOException ex) {
                throw new JadlerException("An error ocurred while reading the response body from "
                        + "the given Reader instance.", ex);
            }
            
            return this.withBody(responseBody);
        }
        finally {
            IOUtils.closeQuietly(reader);
        }
    }
@ Override public ResponseStubbing withBody ( final Reader reader ) { try { final String responseBody ; try { responseBody = IOUtils . toString ( reader ) ; } catch ( final IOException ex ) { throw new JadlerException ( "An error ocurred while reading the response body from " + "the given Reader instance." , ex ) ; } return this . withBody ( responseBody ) ; } finally { IOUtils . closeQuietly ( reader ) ; } }
{@inheritDoc}
{