kerby-common/kerby-xdr/src/main/java/org/apache/kerby/xdr/util/IOUtil.java [82:95]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static String readFile(File file) throws IOException {
        long len = 0;
        if (file.length() >= Integer.MAX_VALUE) {
            throw new IOException("Too large file, unexpected!");
        } else {
            len = file.length();
        }
        byte[] buf = new byte[(int) len];

        InputStream is = Files.newInputStream(file.toPath());
        readInputStream(is, buf);

        return Utf8.toString(buf);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



kerby-common/kerby-util/src/main/java/org/apache/kerby/util/IOUtil.java [83:96]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static String readFile(File file) throws IOException {
        long len = 0;
        if (file.length() >= Integer.MAX_VALUE) {
            throw new IOException("Too large file, unexpected!");
        } else {
            len = file.length();
        }
        byte[] buf = new byte[(int) len];

        InputStream is = Files.newInputStream(file.toPath());
        readInputStream(is, buf);

        return Utf8.toString(buf);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



