src/org/jnetpcap/util/resolver/IEEEOuiPrefixResolver.java
private boolean readOuisFromCompressedIEEEDb(String f)
			throws FileNotFoundException, IOException {
		/*
		 * Try local file first, more efficient
		 */
		File file = new File(f);
		if (file.canRead()) {
			readOuisFromCompressedIEEEDb(new BufferedReader(new FileReader(file)));
			return true;
		}

		/*
		 * Otherwise look for it in classpath
		 */
		InputStream in =
				JFormatter.class.getClassLoader().getResourceAsStream("resources/" + f);
		if (in == null) {
			return false; // Can't find it
		}
		readOuisFromCompressedIEEEDb(new BufferedReader(new InputStreamReader(in)));

		return true;
	}
/**
	 * Read ouis from compressed ieee db.
	 * 
	 * @param f
	 *          the f
	 * @return true, if successful
	 * @throws FileNotFoundException
	 *           the file not found exception
	 * @throws IOException
	 *           Signals that an I/O exception has occurred.
	 */
Read ouis from compressed ieee db.

@param f
the f
@return true, if successful
@throws FileNotFoundException
the file not found exception
@throws IOException
Signals that an I/O exception has occurred.
Read ouis from compressed ieee db . @param f the f @return true if successful @throws FileNotFoundException the file not found exception @throws IOException Signals that an I / O exception has occurred .
private boolean readOuisFromCompressedIEEEDb(String f)
			throws FileNotFoundException, IOException {
		/*
		 * Try local file first, more efficient
		 */
		File file = new File(f);
		if (file.canRead()) {
			readOuisFromCompressedIEEEDb(new BufferedReader(new FileReader(file)));
			return true;
		}
		/*
		 * Otherwise look for it in classpath
		 */
		InputStream in =
				JFormatter.class.getClassLoader().getResourceAsStream("resources/" + f);
		if (in == null) {
			return false; 
		}
		readOuisFromCompressedIEEEDb(new BufferedReader(new InputStreamReader(in)));
		return true;
	}
private boolean readOuisFromCompressedIEEEDb ( String f ) throws FileNotFoundException , IOException { /*
		 * Try local file first, more efficient
		 */ File file = new File ( f ) ; if ( file . canRead ( ) ) { readOuisFromCompressedIEEEDb ( new BufferedReader ( new FileReader ( file ) ) ) ; return true ; } /*
		 * Otherwise look for it in classpath
		 */ InputStream in = JFormatter . class . getClassLoader ( ) . getResourceAsStream ( "resources/" + f ) ; if ( in == null ) { return false ; } readOuisFromCompressedIEEEDb ( new BufferedReader ( new InputStreamReader ( in ) ) ) ; return true ; }
Read ouis from compressed ieee db.
Read ouis from compressed ieee db .
// Can't find it