psdi.iface.app.swcatalog.mea

Class DebugUtil

  • java.lang.Object
    • psdi.iface.app.swcatalog.mea.DebugUtil


  • public class DebugUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      DebugUtil() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String prettyPrintHex(byte[] data)
      Print out a byte array as a string similar to a hex editor display.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DebugUtil

        public DebugUtil()
    • Method Detail

      • prettyPrintHex

        public static java.lang.String prettyPrintHex(byte[] data)
        Print out a byte array as a string similar to a hex editor display. http://www.google.com/search?q=Java+print+byte+array&rls=com.microsoft:en-us:IE-SearchBox&ie=UTF-8&oe=UTF-8&sourceid=ie7&rlz=1I7ADBF
        Parameters:
        byte - array to print
        Returns:
        String with a column for the address, with 16 columns listing the hexadecimal representation of each byte, then the ascii representation of each 16-byte line.