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

		String s = "";

		if (doAddress) {
			s += hexLineAddress(addressOffset);
			s += ":";
		}

		if (doData) {
			s += hexLineData(array, dataOffset, markers);
		}

		if (doText) {
			s += SPACE_CHAR;
			s += SPACE_CHAR;
			s += SPACE_CHAR;

			s += hexLineText(array, dataOffset);
		}

		return (s);
	}
/**
	 * Converts the byte arra to 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
	 */
Converts the byte arra to hexdump string.


Converts the byte arra to hexdump string .
public static String hexLine(byte[] array,
			int addressOffset,
			int dataOffset,
			boolean doAddress,
			boolean doText,
			boolean doData,
			int[][] markers) {
		String s = "";
		if (doAddress) {
			s += hexLineAddress(addressOffset);
			s += ":";
		}
		if (doData) {
			s += hexLineData(array, dataOffset, markers);
		}
		if (doText) {
			s += SPACE_CHAR;
			s += SPACE_CHAR;
			s += SPACE_CHAR;
			s += hexLineText(array, dataOffset);
		}
		return (s);
	}
public static String hexLine ( byte [ ] array , int addressOffset , int dataOffset , boolean doAddress , boolean doText , boolean doData , int [ ] [ ] markers ) { String s = "" ; if ( doAddress ) { s += hexLineAddress ( addressOffset ) ; s += ":" ; } if ( doData ) { s += hexLineData ( array , dataOffset , markers ) ; } if ( doText ) { s += SPACE_CHAR ; s += SPACE_CHAR ; s += SPACE_CHAR ; s += hexLineText ( array , dataOffset ) ; } return ( s ) ; }
Converts the byte arra to hexdump string.
Converts the byte arra to hexdump string .