@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));
}

@ 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 ) ) ; }
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 .
