src/org/jnetpcap/packet/format/FormatUtils.java
public static String hexLineText(byte[] data, int offset) {

		String s = "";

		int i;
		for (i = 0; i + offset < data.length && i < 16; i++) {
			s += table[data[i + offset] & 0xFF];

			// if(Character.isLetterOrDigit(table[data[i + offset] & 0xFF]) ||
			// (table[data[i + offset] & 0xFF]) == ' ')
			// s += " " + table[data[i + offset] & 0xFF];
			// else
			// s += " " + NONPRINTABLE_CHAR;
		}

		/**
		 * Continue the loop and fill in any missing data less than 16 bytes.
		 */
		for (; i < 16; i++) {
			s += SPACE_CHAR;
		}

		return (s);
	}
/**
	 * Formats the array data to human readable text that appears at the end of a
	 * hexline of a hexdump.
	 * 
	 * @param data
	 *          data array
	 * @param offset
	 *          offset into data array
	 * @return formatted string
	 */
Formats the array data to human readable text that appears at the end of a
hexline of a hexdump.

@param data
data array
@param offset
offset into data array
@return formatted string
Formats the array data to human readable text that appears at the end of a hexline of a hexdump . @param data data array @param offset offset into data array @return formatted string
public static String hexLineText(byte[] data, int offset) {
		String s = "";
		int i;
		for (i = 0; i + offset < data.length && i < 16; i++) {
			s += table[data[i + offset] & 0xFF];
		}
		/**
		 * Continue the loop and fill in any missing data less than 16 bytes.
		 */
		for (; i < 16; i++) {
			s += SPACE_CHAR;
		}
		return (s);
	}
public static String hexLineText ( byte [ ] data , int offset ) { String s = "" ; int i ; for ( i = 0 ; i + offset < data . length && i < 16 ; i ++ ) { s += table [ data [ i + offset ] & 0xFF ] ; } /**
		 * Continue the loop and fill in any missing data less than 16 bytes.
		 */ for ( ; i < 16 ; i ++ ) { s += SPACE_CHAR ; } return ( s ) ; }
Formats the array data to human readable text that appears at the end of a
 hexline of a hexdump.
Formats the array data to human readable text that appears at the end of a hexline of a hexdump .
// if(Character.isLetterOrDigit(table[data[i + offset] & 0xFF]) || // (table[data[i + offset] & 0xFF]) == ' ') // s += " " + table[data[i + offset] & 0xFF]; // else // s += " " + NONPRINTABLE_CHAR;