public static String getPathEllipsis(final String filename, final int maxlen) {
    return getPathEllipsis(filename, maxlen, "...");
  }
Shortens a filename to a specified length by adding path ellipsis ("..."). Applies a heuristic
to work for both Windows and Unix style paths.

@param filename the filename to shorten
@param maxlen the maximum number of characters to return
@return the truncated string with ellipsis added
java/zylib/src/main/java/com/google/security/zynamics/zylib/io/FileUtils.java