src/org/jnetpcap/packet/JRegistry.java
private static int lookupIdNoCreate(Class<? extends JHeader> c)
			throws UnregisteredHeaderException {
		if (mapByClassName.containsKey(c.getCanonicalName()) == false) {
			throw new UnregisteredHeaderException("header [" + c.getName()
					+ "] not registered");
		}

		return mapByClassName.get(c.getCanonicalName()).id;
	}
/**
	 * Lookup id no create.
	 * 
	 * @param c
	 *          the c
	 * @return the int
	 * @throws UnregisteredHeaderException
	 *           the unregistered header exception
	 */
Lookup id no create.

@param c
the c
@return the int
@throws UnregisteredHeaderException
the unregistered header exception
Lookup id no create . @param c the c @return the int @throws UnregisteredHeaderException the unregistered header exception
private static int lookupIdNoCreate(Class<? extends JHeader> c)
			throws UnregisteredHeaderException {
		if (mapByClassName.containsKey(c.getCanonicalName()) == false) {
			throw new UnregisteredHeaderException("header [" + c.getName()
					+ "] not registered");
		}
		return mapByClassName.get(c.getCanonicalName()).id;
	}
private static int lookupIdNoCreate ( Class < ? extends JHeader > c ) throws UnregisteredHeaderException { if ( mapByClassName . containsKey ( c . getCanonicalName ( ) ) == false ) { throw new UnregisteredHeaderException ( "header [" + c . getName ( ) + "] not registered" ) ; } return mapByClassName . get ( c . getCanonicalName ( ) ) . id ; }
Lookup id no create.
Lookup id no create .