src/org/jnetpcap/util/resolver/AbstractResolver.java
public int saveCache(String file) throws IOException {
		File f = new File(file);
		if (f.exists()) {
			f.delete();
		}

		if (f.createNewFile() == false) {
			return 0;
		}

		final PrintWriter out = new PrintWriter(new FileWriter(f));

		return saveCache(out);
	}
/**
	 * Save the cache to file.
	 * 
	 * @param file
	 *          file to save to
	 * @return number of entries saved
	 * @throws IOException
	 *           any IO errors
	 */
Save the cache to file.

@param file
file to save to
@return number of entries saved
@throws IOException
any IO errors
Save the cache to file . @param file file to save to @return number of entries saved @throws IOException any IO errors
public int saveCache(String file) throws IOException {
		File f = new File(file);
		if (f.exists()) {
			f.delete();
		}
		if (f.createNewFile() == false) {
			return 0;
		}
		final PrintWriter out = new PrintWriter(new FileWriter(f));
		return saveCache(out);
	}
public int saveCache ( String file ) throws IOException { File f = new File ( file ) ; if ( f . exists ( ) ) { f . delete ( ) ; } if ( f . createNewFile ( ) == false ) { return 0 ; } final PrintWriter out = new PrintWriter ( new FileWriter ( f ) ) ; return saveCache ( out ) ; }
Save the cache to file.
Save the cache to file .