All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iceberg.util.myutil

java.lang.Object
   |
   +----iceberg.util.myutil

public class myutil
extends Object
A bunch of functions to do the annoying conversions between integer ip-addresses and string ip-addresses. Also some conversions between integer & byte


Variable Index

 o byte0
 o byte1

Constructor Index

 o myutil()

Method Index

 o byte2int(byte)
Converts byte into integer
 o debug(String)
Print a debug message to stderr
 o Email2Uniq(String)
Convert email id to DN format as uniq id
 o Inet2int(InetAddress)
Converts a dotted ip address to 32 bit integer
 o int2byte(int)
Converts integer into byte
 o int2dotted(int)
Converts a 32 bit integer ip address into the dotted notation
 o split(String, String)
Split a string into multiple strings with the given separator.
 o Uniq2Email(String)
Convert a DN format uniqid to an email id
 o uuid()
Generates a uuid (sort of) and returns it as a String

Variables

 o byte0
 public static byte byte0
 o byte1
 public static byte byte1

Constructors

 o myutil
 public myutil()

Methods

 o int2dotted
 public static String int2dotted(int ipaddr)
Converts a 32 bit integer ip address into the dotted notation

 o Inet2int
 public static int Inet2int(InetAddress inet_addr)
Converts a dotted ip address to 32 bit integer

 o int2byte
 public static byte int2byte(int intval)
Converts integer into byte

 o byte2int
 public static int byte2int(byte byteval)
Converts byte into integer

 o uuid
 public static String uuid()
Generates a uuid (sort of) and returns it as a String

 o Email2Uniq
 public static String Email2Uniq(String email)
Convert email id to DN format as uniq id

 o Uniq2Email
 public static String Uniq2Email(String dnStr)
Convert a DN format uniqid to an email id

 o split
 public static String[] split(String s,
                              String sep)
Split a string into multiple strings with the given separator. Return null on any error.

 o debug
 public static void debug(String str)
Print a debug message to stderr


All Packages  Class Hierarchy  This Package  Previous  Next  Index