System.out.println("Extra bytes in packet read: " + i);
if (debug) {System.out.println("Extra bytes in packet read: " + i);}
    private void checkAllRead(InputStream in) throws GDSException {        try {            int i = in.available();            if (i > 0) {                System.out.println("Extra bytes in packet read: " + i);                byte[] b = new byte[i];                in.read(b);                for (int j = 0; j < Math.min(b.length, 16); j++) {                    System.out.println("byte: " + b[j]);                }            }        }        catch (IOException e) {            throw new GDSException("IOException in checkAllRead: " + e);        }    }