private void parseResponse(HttpResponse response) throws LogCallback.DoneException, IOException {
        final StatusLine status = response.getStatusLine();
        if (status.getStatusCode() != 200) {
            exception = new DockerAccessException("Error while reading logs (" + status + ")");
            throw new LogCallback.DoneException();
        }

        final InputStream is = response.getEntity().getContent();
       
        while (true) {
            if (!readStreamFrame(is)) {
                return;
            }
        }
    }
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