com.moesol.util
Class DumpBytes

java.lang.Object
  extended by com.moesol.util.DumpBytes

public class DumpBytes
extends Object

Dump an array of bytes to output as hex and ascii. Since jSegue treats unsigned char as short to hold the range 0 - 255 dumpBytes also has a short[] form.


Constructor Summary
DumpBytes()
           
 
Method Summary
static void dumpByte(PrintStream ps, byte v)
           
static void dumpByte(PrintWriter out, byte v)
           
static void dumpBytes(PrintStream ps, byte[] b)
           
static void dumpBytes(PrintStream ps, byte[] b, int start, int count)
           
static void dumpBytes(PrintStream ps, ByteBuffer bb)
           
static void dumpBytes(PrintStream ps, short[] bytes)
           
static void dumpBytes(PrintWriter out, byte[] b)
           
static void dumpBytes(PrintWriter out, byte[] b, int start, int count)
           
static void dumpBytes(PrintWriter out, ByteBuffer bb)
           
static void dumpBytes(PrintWriter out, short[] bytes)
           
static void dumpHexRow(PrintWriter out, byte[] b, int current)
           
static void dumpHexRow(PrintWriter out, ByteBuffer bb, int current)
           
static void dumpHexRow(PrintWriter out, short[] bytes, int current)
           
static void dumpInt(PrintWriter out, int v)
           
static void dumpInt(PrintWriter out, int v, int width)
           
static boolean isPrintable(byte v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpBytes

public DumpBytes()
Method Detail

dumpBytes

public static void dumpBytes(PrintStream ps,
                             byte[] b)

dumpBytes

public static void dumpBytes(PrintStream ps,
                             byte[] b,
                             int start,
                             int count)

dumpBytes

public static void dumpBytes(PrintStream ps,
                             short[] bytes)

dumpBytes

public static void dumpBytes(PrintStream ps,
                             ByteBuffer bb)

dumpBytes

public static void dumpBytes(PrintWriter out,
                             byte[] b)

dumpBytes

public static void dumpBytes(PrintWriter out,
                             byte[] b,
                             int start,
                             int count)

dumpBytes

public static void dumpBytes(PrintWriter out,
                             ByteBuffer bb)

dumpBytes

public static void dumpBytes(PrintWriter out,
                             short[] bytes)

dumpHexRow

public static void dumpHexRow(PrintWriter out,
                              byte[] b,
                              int current)

dumpHexRow

public static void dumpHexRow(PrintWriter out,
                              ByteBuffer bb,
                              int current)

dumpHexRow

public static void dumpHexRow(PrintWriter out,
                              short[] bytes,
                              int current)

isPrintable

public static boolean isPrintable(byte v)

dumpByte

public static void dumpByte(PrintWriter out,
                            byte v)

dumpByte

public static void dumpByte(PrintStream ps,
                            byte v)

dumpInt

public static void dumpInt(PrintWriter out,
                           int v)

dumpInt

public static void dumpInt(PrintWriter out,
                           int v,
                           int width)


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.