public static int readInteger(InputStream is) {
        byte[] tmp = new byte[4];
        try {
            is.read(tmp, 0, tmp.length);
        } catch (IOException ex) {
        }
        return NumUtil.toInteger(tmp);
    }