private static long getLong(String val) {
        if (StringUtils.isBlank(val)) {
            return -1;
        }
        return Long.parseLong(val);
    }
Tries to parse a long out of the value.  If the val is blank, it returns -1.
Throws {@link NumberFormatException}

@param val
@return
tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/FetcherStreamFactory.java