Here you can find the source of dump(byte[] data, int pos, int length)
Parameter | Description |
---|---|
data | The array to dump. |
pos | The position to begin writing from |
length | The count of bytes to dump. |
public static void dump(byte[] data, int pos, int length)
//package com.java2s; // distribute, sublicense, and/or sell copies of the Software, and to public class Main { /**//w ww . java 2s. c o m * Dump a human-readable hex dump of data to standard out. * @param data The array to dump. * @param pos The position to begin writing from * @param length The count of bytes to dump. */ public static void dump(byte[] data, int pos, int length) { for (int i = pos; i < length + pos; ++i) { System.out.printf("%X ", data[i]); } System.out.println(""); } }