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