public static String getFileBasename(final File file) {
    final String filename = file.getName();
    final int dotIdx = filename.lastIndexOf(".");

    return dotIdx == -1 ? filename : filename.substring(0, dotIdx);
  }
Returns the basename of the specified <code>File</code>.

@param file a <code>File</code> object to obtain the basename from
@return the basename of file
java/zylib/src/main/java/com/google/security/zynamics/zylib/io/FileUtils.java