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
-
byte0
-
-
byte1
-
-
myutil()
-
-
byte2int(byte)
- Converts byte into integer
-
debug(String)
- Print a debug message to stderr
-
Email2Uniq(String)
- Convert email id to DN format as uniq id
-
Inet2int(InetAddress)
- Converts a dotted ip address to 32 bit integer
-
int2byte(int)
- Converts integer into byte
-
int2dotted(int)
- Converts a 32 bit integer ip address into the dotted notation
-
split(String, String)
- Split a string into multiple strings with the given
separator.
-
Uniq2Email(String)
- Convert a DN format uniqid to an email id
-
uuid()
- Generates a uuid (sort of) and returns it as a String
byte0
public static byte byte0
byte1
public static byte byte1
myutil
public myutil()
int2dotted
public static String int2dotted(int ipaddr)
- Converts a 32 bit integer ip address into the dotted notation
Inet2int
public static int Inet2int(InetAddress inet_addr)
- Converts a dotted ip address to 32 bit integer
int2byte
public static byte int2byte(int intval)
- Converts integer into byte
byte2int
public static int byte2int(byte byteval)
- Converts byte into integer
uuid
public static String uuid()
- Generates a uuid (sort of) and returns it as a String
Email2Uniq
public static String Email2Uniq(String email)
- Convert email id to DN format as uniq id
Uniq2Email
public static String Uniq2Email(String dnStr)
- Convert a DN format uniqid to an email id
split
public static String[] split(String s,
String sep)
- Split a string into multiple strings with the given
separator. Return null on any error.
debug
public static void debug(String str)
- Print a debug message to stderr
All Packages Class Hierarchy This Package Previous Next Index