Java XML Data Type Converter printBytes(byte[] data)

Here you can find the source of printBytes(byte[] data)

Description

print Bytes

License

Apache License

Declaration

public static void printBytes(byte[] data) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.xml.bind.*;

public class Main {
    public static void printBytes(byte[] data) {
        byte[] datum = new byte[1];
        for (int i = 0; i < data.length; i++) {
            datum[0] = data[i];/*from www  .ja  v a2s  .c o m*/
            System.out.println(i + " : "
                    + DatatypeConverter.printHexBinary(datum));
        }
    }
}

Related

  1. getTextAsJavaByteArrayInitializer( String text, String charsetName, int maxArraySize)
  2. getXMLLong(final long value)
  3. isValidValue(String value, Class type)
  4. millis2String(long millis)
  5. mixColumns(byte[] input, boolean inv)
  6. printDecimal(BigDecimal value, BigDecimal min, BigDecimal max, int precision, boolean zeroIncluded)
  7. printIntToInteger(int value)
  8. printLongitude(BigDecimal value)
  9. printPositiveDecimal(BigDecimal value)