System.err.println("Got " + size);
    private void readChunk() throws IOException {        try {            size = Integer.parseInt(readLine(),16);            // System.out.println("Expecting " + size);            chunk = new byte[size];            int read = 0;            while (read < size) {                int got = in.read(chunk,read, size-read);                if (got>0) {                    read = read + got;                } else if (read == 0) {                    System.out.println("read 0 bytes from the input stream! Huh!?");                } else {                    System.out.println("No more bytes to read from the stream, read " + read + " of " + size);                    continue;                }            }            String crlf = readLine();            if (size == 0) { // read the trailer and the CRLF                readTrailer();            }            // System.out.print("Got '" + crlf + "' as a crlf");            // System.out.println("Got " + size);            start = 0;        } catch (NumberFormatException nfe) {            System.err.println("Error reading chunk size " + nfe);            System.err.println("Previous chunk was '" + new String(chunk) + "'");        }    }