src/org/jnetpcap/packet/JRegistry.java
public static Class<? extends JHeader> lookupClass(int id)
			throws UnregisteredHeaderException {

		if (id > LAST_ID) {
			throw new UnregisteredHeaderException("invalid id " + id);
		}

		final Entry entry = MAP_BY_ID[id];

		if (entry == null) {
			throw new UnregisteredHeaderException("invalid id " + id);
		}

		return entry.getHeaderClass();
	}
/**
	 * Looks up the class of a header based on its ID.
	 * 
	 * @param id
	 *          protocol id
	 * @return class for this protocol
	 * @throws UnregisteredHeaderException
	 *           thrown if protocol not found, invalid ID
	 */
Looks up the class of a header based on its ID.

@param id
protocol id
@return class for this protocol
@throws UnregisteredHeaderException
thrown if protocol not found, invalid ID
Looks up the class of a header based on its ID . @param id protocol id @return class for this protocol @throws UnregisteredHeaderException thrown if protocol not found invalid ID
public static Class<? extends JHeader> lookupClass(int id)
			throws UnregisteredHeaderException {
		if (id > LAST_ID) {
			throw new UnregisteredHeaderException("invalid id " + id);
		}
		final Entry entry = MAP_BY_ID[id];
		if (entry == null) {
			throw new UnregisteredHeaderException("invalid id " + id);
		}
		return entry.getHeaderClass();
	}
public static Class < ? extends JHeader > lookupClass ( int id ) throws UnregisteredHeaderException { if ( id > LAST_ID ) { throw new UnregisteredHeaderException ( "invalid id " + id ) ; } final Entry entry = MAP_BY_ID [ id ] ; if ( entry == null ) { throw new UnregisteredHeaderException ( "invalid id " + id ) ; } return entry . getHeaderClass ( ) ; }
Looks up the class of a header based on its ID.
Looks up the class of a header based on its ID .