public class Encoder extends Object
Modifier and Type | Method and 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 Object |
deserialize(byte[] b,
boolean compressed) |
static String |
encode(byte[] bytes) |
static String |
encodeBase64(byte[] bytes) |
static String |
encodeHttp64(byte[] bytes,
int compressThreshold) |
static byte[] |
serialize(Serializable o,
boolean compress) |
public static String encode(byte[] bytes)
public static byte[] decode(String s)
public static String encodeBase64(byte[] bytes)
public static byte[] decodeBase64(String s)
public static String encodeHttp64(byte[] bytes, int compressThreshold)
public static byte[] decodeHttp64(String s)
public static byte[] compress(byte[] in)
public static byte[] decompress(byte[] in)
public static byte[] serialize(Serializable o, boolean compress) throws IOException
IOException
public static Object deserialize(byte[] b, boolean compressed) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.