java.lang.Object
iiuf.util.Trans
- public class Trans
- extends java.lang.Object
Some useful data transformation.
(c) 1999, 2000, 2001, IIUF, DIUF
- Version:
- $Revision: 1.1 $
|
Field Summary |
private static char[] |
HEXTAB
|
|
Constructor Summary |
Trans()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HEXTAB
private static final char[] HEXTAB
Trans
public Trans()
int2byte
private static byte[] int2byte(int i)
byte2int
private static int byte2int(byte[] b)
object2byte
public static byte[] object2byte(java.lang.Object object)
throws java.io.IOException
byte2object
public static java.lang.Object byte2object(byte[] b)
throws java.io.IOException,
java.lang.ClassNotFoundException
uuDecode
public static byte[] uuDecode(byte[] uuencoded)
throws java.io.IOException,
java.lang.ClassNotFoundException
uuEncode
public static byte[] uuEncode(byte[] b,
int permission,
java.lang.String name)
throws java.io.IOException
hex
public static java.lang.String hex(byte[] b)
hex2dec
private static int hex2dec(char c)
unhex
public static byte[] unhex(java.lang.String s)
zip
public static byte[] zip(byte[] unzipped)
throws java.io.IOException
unzip
public static byte[] unzip(byte[] zipped)
throws java.io.IOException
main
public static void main(java.lang.String[] argv)