question: @ SuppressWarnings ( "deprecation" ) public boolean isPortableFilename ( String filename ) { return ( filename . startsWith ( PROGRAM ) || filename . startsWith ( HOME ) || filename . startsWith ( PREFERENCES ) || filename . startsWith ( SCRIPTS ) || filename . startsWith ( PROFILE ) || filename . startsWith ( SETTINGS ) || filename . startsWith ( FILE ) || filename . startsWith ( RESOURCE ) ) ; }
target:  Test if the given filename is a portable filename. Note that this method may return a false positive if the filename is a file: URL.