src/org/jnetpcap/packet/format/FormatUtils.java
public static String[] hexdump(byte[] array,
			int addressOffset,
			int dataOffset,
			boolean doAddress,
			boolean doText,
			boolean doData,
			int[][] markers) {

		multiLineStringList.clear();

		for (int i = 0; i + dataOffset < array.length; i += 16) {
			multiLineStringList.add(hexLine(array,
					i + addressOffset,
					i + dataOffset,
					doAddress,
					doText,
					doData,
					markers));
		}

		return multiLineStringList.toArray(new String[multiLineStringList.size()]);
	}
/**
	 * Formats a byte array to a hexdump string.
	 * 
	 * @param array
	 *          array to convert
	 * @param addressOffset
	 *          offset of the address space reported
	 * @param dataOffset
	 *          offset of the data space reported
	 * @param doAddress
	 *          flag which specifies if address should be printed
	 * @param doText
	 *          flag which specifies if text should printed
	 * @param doData
	 *          flag which specifies if data should printed
	 * @param markers
	 *          the markers
	 * @return converted string array, one array element per line of output
	 */
Formats a byte array to a hexdump string.


Formats a byte array to a hexdump string .
public static String[] hexdump(byte[] array,
			int addressOffset,
			int dataOffset,
			boolean doAddress,
			boolean doText,
			boolean doData,
			int[][] markers) {
		multiLineStringList.clear();
		for (int i = 0; i + dataOffset < array.length; i += 16) {
			multiLineStringList.add(hexLine(array,
					i + addressOffset,
					i + dataOffset,
					doAddress,
					doText,
					doData,
					markers));
		}
		return multiLineStringList.toArray(new String[multiLineStringList.size()]);
	}
public static String [ ] hexdump ( byte [ ] array , int addressOffset , int dataOffset , boolean doAddress , boolean doText , boolean doData , int [ ] [ ] markers ) { multiLineStringList . clear ( ) ; for ( int i = 0 ; i + dataOffset < array . length ; i += 16 ) { multiLineStringList . add ( hexLine ( array , i + addressOffset , i + dataOffset , doAddress , doText , doData , markers ) ) ; } return multiLineStringList . toArray ( new String [ multiLineStringList . size ( ) ] ) ; }
Formats a byte array to a hexdump string.
Formats a byte array to a hexdump string .