Here you can find the source of dumpData(byte data[])
Parameter | Description |
---|---|
data | The data to dump |
public static String dumpData(byte data[])
//package com.java2s; //License from project: Apache License public class Main { /**//from w w w .j av a 2 s. co m * Dump an array of bytes * @param data The data to dump * @return A string representation of the data. */ public static String dumpData(byte data[]) { String ret = ""; for (int i = 0; i < data.length; i++) { ret += String.format("%2x", data[i]).replace(' ', '0') + " "; } return ret; } }