@Override
    public void finish() {
        if (request != null) {
            request.abort();
            request = null;
        }
    }
This is a copy of ByteStreams.readFully(), with the slight change that it throws
NoBytesReadException if zero bytes are read. Otherwise it is identical.

@param in
@param bytes
@throws IOException
src/main/java/io/fabric8/maven/docker/access/log/LogRequestor.java