public class SerializationUtils extends Object
| Constructor and Description |
|---|
SerializationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
byteArrayToHexString(byte[] in) |
static byte[] |
hexStringToByteArray(String value) |
static boolean |
otrEncoded(String content)
Check whether the provided content is OTR encoded.
|
static BigInteger |
readMpi(byte[] b) |
static byte[] |
toByteArray(MysteriousT t) |
static byte[] |
toByteArray(SignatureM m) |
static byte[] |
toByteArray(SignatureX x) |
static AbstractMessage |
toMessage(String s) |
static SignatureX |
toMysteriousX(byte[] b) |
static String |
toString(AbstractMessage m) |
static byte[] |
writeData(byte[] b) |
static byte[] |
writeMpi(BigInteger bigInt) |
static byte[] |
writePublicKey(PublicKey pubKey) |
public static SignatureX toMysteriousX(byte[] b) throws IOException
IOExceptionpublic static byte[] toByteArray(SignatureX x) throws IOException
IOExceptionpublic static byte[] toByteArray(SignatureM m) throws IOException
IOExceptionpublic static byte[] toByteArray(MysteriousT t) throws IOException
IOExceptionpublic static byte[] writeData(byte[] b)
throws IOException
IOExceptionpublic static byte[] writeMpi(BigInteger bigInt) throws IOException
IOExceptionpublic static BigInteger readMpi(byte[] b) throws IOException
IOExceptionpublic static byte[] writePublicKey(PublicKey pubKey) throws IOException
IOExceptionpublic static String toString(AbstractMessage m) throws IOException
IOExceptionpublic static AbstractMessage toMessage(String s) throws IOException
IOExceptionpublic static String byteArrayToHexString(byte[] in)
public static byte[] hexStringToByteArray(String value)
public static boolean otrEncoded(String content)
content - the content to investigateCopyright © 2015. All rights reserved.