src/org/jnetpcap/packet/format/FormatUtils.java
public static String asString(byte[] array,
			char separator,
			int radix,
			int start,
			int len) {

		final StringBuilder buf = new StringBuilder();

		for (int i = start; i < (start + len); i++) {
			byte b = array[i];
			if (buf.length() != 0) {
				buf.append(separator);
			}

			buf.append(Integer.toString((b < 0) ? b + 256 : b, radix).toUpperCase());
		}

		return buf.toString();
	}
/**
	 * Convers the given byte array to a string using the supplied separator
	 * character.
	 * 
	 * @param array
	 *          array to convert
	 * @param separator
	 *          separator character to use in between array elements
	 * @param radix
	 *          the radix
	 * @param start
	 *          the start
	 * @param len
	 *          the len
	 * @return the converted string
	 */
Convers the given byte array to a string using the supplied separator
character.


Convers the given byte array to a string using the supplied separator character .
public static String asString(byte[] array,
			char separator,
			int radix,
			int start,
			int len) {
		final StringBuilder buf = new StringBuilder();
		for (int i = start; i < (start + len); i++) {
			byte b = array[i];
			if (buf.length() != 0) {
				buf.append(separator);
			}
			buf.append(Integer.toString((b < 0) ? b + 256 : b, radix).toUpperCase());
		}
		return buf.toString();
	}
public static String asString ( byte [ ] array , char separator , int radix , int start , int len ) { final StringBuilder buf = new StringBuilder ( ) ; for ( int i = start ; i < ( start + len ) ; i ++ ) { byte b = array [ i ] ; if ( buf . length ( ) != 0 ) { buf . append ( separator ) ; } buf . append ( Integer . toString ( ( b < 0 ) ? b + 256 : b , radix ) . toUpperCase ( ) ) ; } return buf . toString ( ) ; }
Convers the given byte array to a string using the supplied separator
 character.
Convers the given byte array to a string using the supplied separator character .