Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

iiuf.util
Class Trans  view Trans download Trans.java

java.lang.Object
  extended byiiuf.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()
           
 
Method Summary
private static int byte2int(byte[] b)
           
static java.lang.Object byte2object(byte[] b)
           
static java.lang.String hex(byte[] b)
           
private static int hex2dec(char c)
           
private static byte[] int2byte(int i)
           
static void main(java.lang.String[] argv)
           
static byte[] object2byte(java.lang.Object object)
           
static byte[] unhex(java.lang.String s)
           
static byte[] unzip(byte[] zipped)
           
static byte[] uuDecode(byte[] uuencoded)
           
static byte[] uuEncode(byte[] b, int permission, java.lang.String name)
           
static byte[] zip(byte[] unzipped)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEXTAB

private static final char[] HEXTAB
Constructor Detail

Trans

public Trans()
Method Detail

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)