@Override
    public void write(T entity, OutputStream output, Long pos, Long length) throws IOException {
        InputStream in = getInputStream(entity);
        if (pos != null && pos > 0) {
            in.skip(pos);
        }
        if (length != null && length > 0) {
            in = ByteStreams.limit(in, length);
        }
        try {
            ReaderWriter.writeTo(in, output);
        } finally {
            IOUtils.closeQuietly(in);
        }
    }
@ Override public void write ( T entity , OutputStream output , Long pos , Long length ) throws IOException { InputStream in = getInputStream ( entity ) ; if ( pos != null && pos > 0 ) { in . skip ( pos ) ; } if ( length != null && length > 0 ) { in = ByteStreams . limit ( in , length ) ; } try { ReaderWriter . writeTo ( in , output ) ; } finally { IOUtils . closeQuietly ( in ) ; } }
{@inheritDoc}