com.karmasphere.share.util
Class HexDumpUtil

java.lang.Object
  extended by com.karmasphere.share.util.HexDumpUtil

public class HexDumpUtil
extends Object

Utility class to dump a byte array as hex into a string. Format compatable with xxd


Constructor Summary
HexDumpUtil()
           
 
Method Summary
static String dump(byte[] buf)
           
static String dump(ByteBuffer buf)
           
static void dump(InputStream in, Writer out)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexDumpUtil

public HexDumpUtil()
Method Detail

dump

public static String dump(ByteBuffer buf)

dump

public static String dump(byte[] buf)

dump

public static void dump(InputStream in,
                        Writer out)
                 throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException


Copyright © 2004-2005 Karamsphere. All Rights Reserved.