public abstract String inferBinaryName (Location location, JavaFileObject file)

Infers a binary name of a file object based on a package-oriented location. The binary name returned might not be a valid binary name according to The Java™ Language Specification.

Parameters:
location    a location
file    a file object

Returns:  a binary name or null the file object is not found in the given location

Exceptions:
IllegalArgumentException    if the location is a module-oriented location
IllegalStateException    if close has been called and this file manager cannot be reopened