Exemplo n.º 1
0
  public static void main(String[] args) {
    byte[] data = new byte[132];
    for (int i = 0; i < 132; ++i) data[i] = (byte) i;

    HexUtils.dumpHexData(System.out, "Test HexDump", data, 132);
    System.out.println("Done");
  }
Exemplo n.º 2
0
  public static void dumpHexData(PrintStream out, String title, byte[] buf, int numBytes) {
    PrintWriter wrtr = new PrintWriter(new OutputStreamWriter(out));

    HexUtils.dumpHexData(wrtr, title, buf, 0, numBytes);
    wrtr.flush();
  }