org.mobicents.util
Class Utils

java.lang.Object
  extended by org.mobicents.util.Utils

public class Utils
extends java.lang.Object

This class contains various static utility methods.

Author:
Oleg Kulikov

Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String hexDump(byte[] bytes)
          Construct a String containing a hex-dump of a byte array
static java.lang.String hexDump(java.lang.String label, byte[] bytes)
          Construct a String containing a hex-dump of a byte array
static java.lang.Object hexDump(java.lang.String string, java.net.DatagramPacket packet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

hexDump

public static java.lang.String hexDump(byte[] bytes)
Construct a String containing a hex-dump of a byte array

Parameters:
bytes - the data to dump
Returns:
a string containing the hexdump

hexDump

public static java.lang.String hexDump(java.lang.String label,
                                       byte[] bytes)
Construct a String containing a hex-dump of a byte array

Parameters:
label - the label of the hexdump or null
bytes - the data to dump
Returns:
a string containing the hexdump

hexDump

public static java.lang.Object hexDump(java.lang.String string,
                                       java.net.DatagramPacket packet)


Copyright © 2010. All Rights Reserved.