src/org/jnetpcap/packet/JRegistry.java
public static String toDebugString() {
		Formatter out = new Formatter();

		try {
			/*
			 * Dump scanners and their configs
			 */
			for (int i = 0; i < A_MAX_ID_COUNT; i++) {
				if (scanners[i] != null) {
					out.format("scanner[%-2d] class=%-15s %s\n", i, lookupClass(i)
							.getSimpleName(), scanners[i].toString());
				}
			}

			/*
			 * Dump existing DLT to ID mappings
			 */
			for (int i = 0; i < MAX_DLT_COUNT; i++) {
				if (hasDltMapping(i)) {
					int id = mapDLTToId(i);
					Class<?> c = lookupClass(id);

					out.format("libpcap::%-24s => header::%s.class(%d)\n", PcapDLT
							.valueOf(i).toString() + "(" + i + ")", c.getSimpleName(), id);
				}
			}
		} catch (UnregisteredHeaderException e) {
			throw new IllegalStateException(e);
		}

		for (Object k : resolvers.keySet()) {
			Resolver r = resolvers.get(k);
			r.initializeIfNeeded();
			out.format("Resolver %s: %s\n", String.valueOf(k), r.toString());
		}

		return out.toString();
	}
/**
	 * Dumps various tables JRegistry maintains as debug information.
	 * 
	 * @return multi-line string containing various debug information about
	 *         JRegistry
	 */
Dumps various tables JRegistry maintains as debug information.

@return multi-line string containing various debug information about
JRegistry
Dumps various tables JRegistry maintains as debug information . @return multi - line string containing various debug information about JRegistry
public static String toDebugString() {
		Formatter out = new Formatter();
		try {
			/*
			 * Dump scanners and their configs
			 */
			for (int i = 0; i < A_MAX_ID_COUNT; i++) {
				if (scanners[i] != null) {
					out.format("scanner[%-2d] class=%-15s %s\n", i, lookupClass(i)
							.getSimpleName(), scanners[i].toString());
				}
			}
			/*
			 * Dump existing DLT to ID mappings
			 */
			for (int i = 0; i < MAX_DLT_COUNT; i++) {
				if (hasDltMapping(i)) {
					int id = mapDLTToId(i);
					Class<?> c = lookupClass(id);
					out.format("libpcap::%-24s => header::%s.class(%d)\n", PcapDLT
							.valueOf(i).toString() + "(" + i + ")", c.getSimpleName(), id);
				}
			}
		} catch (UnregisteredHeaderException e) {
			throw new IllegalStateException(e);
		}
		for (Object k : resolvers.keySet()) {
			Resolver r = resolvers.get(k);
			r.initializeIfNeeded();
			out.format("Resolver %s: %s\n", String.valueOf(k), r.toString());
		}
		return out.toString();
	}
public static String toDebugString ( ) { Formatter out = new Formatter ( ) ; try { /*
			 * Dump scanners and their configs
			 */ for ( int i = 0 ; i < A_MAX_ID_COUNT ; i ++ ) { if ( scanners [ i ] != null ) { out . format ( "scanner[%-2d] class=%-15s %s\n" , i , lookupClass ( i ) . getSimpleName ( ) , scanners [ i ] . toString ( ) ) ; } } /*
			 * Dump existing DLT to ID mappings
			 */ for ( int i = 0 ; i < MAX_DLT_COUNT ; i ++ ) { if ( hasDltMapping ( i ) ) { int id = mapDLTToId ( i ) ; Class < ? > c = lookupClass ( id ) ; out . format ( "libpcap::%-24s => header::%s.class(%d)\n" , PcapDLT . valueOf ( i ) . toString ( ) + "(" + i + ")" , c . getSimpleName ( ) , id ) ; } } } catch ( UnregisteredHeaderException e ) { throw new IllegalStateException ( e ) ; } for ( Object k : resolvers . keySet ( ) ) { Resolver r = resolvers . get ( k ) ; r . initializeIfNeeded ( ) ; out . format ( "Resolver %s: %s\n" , String . valueOf ( k ) , r . toString ( ) ) ; } return out . toString ( ) ; }
Dumps various tables JRegistry maintains as debug information.
Dumps various tables JRegistry maintains as debug information .