Package com.iplanet.jato.util
Class Encoder
- java.lang.Object
-
- com.iplanet.jato.util.Encoder
-
public class Encoder extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]compress(byte[] in)static byte[]decode(String s)static byte[]decodeBase64(String s)static byte[]decodeHttp64(String s)static byte[]decompress(byte[] in)static Objectdeserialize(byte[] b, boolean compressed)static Stringencode(byte[] bytes)static StringencodeBase64(byte[] bytes)static StringencodeHttp64(byte[] bytes, int compressThreshold)static byte[]serialize(Serializable o, boolean compress)
-
-
-
Method Detail
-
encode
public static String encode(byte[] bytes)
-
decode
public static byte[] decode(String s)
-
encodeBase64
public static String encodeBase64(byte[] bytes)
-
decodeBase64
public static byte[] decodeBase64(String s)
-
encodeHttp64
public static String encodeHttp64(byte[] bytes, int compressThreshold)
-
decodeHttp64
public static byte[] decodeHttp64(String s)
-
compress
public static byte[] compress(byte[] in)
-
decompress
public static byte[] decompress(byte[] in)
-
serialize
public static byte[] serialize(Serializable o, boolean compress) throws IOException
- Throws:
IOException
-
deserialize
public static Object deserialize(byte[] b, boolean compressed) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
-