net.java.otr4j.io
Class SerializationUtils

Package class diagram package SerializationUtils
java.lang.Object
  extended by net.java.otr4j.io.SerializationUtils

public class SerializationUtils
extends Object


Constructor Summary
SerializationUtils()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationUtils

public SerializationUtils()
Method Detail

toMysteriousX

public static SignatureX toMysteriousX(byte[] b)
                                throws IOException
Throws:
IOException

toByteArray

public static byte[] toByteArray(SignatureX x)
                          throws IOException
Throws:
IOException

toByteArray

public static byte[] toByteArray(SignatureM m)
                          throws IOException
Throws:
IOException

toByteArray

public static byte[] toByteArray(MysteriousT t)
                          throws IOException
Throws:
IOException

writeData

public static byte[] writeData(byte[] b)
                        throws IOException
Throws:
IOException

writeMpi

public static byte[] writeMpi(BigInteger bigInt)
                       throws IOException
Throws:
IOException

readMpi

public static BigInteger readMpi(byte[] b)
                          throws IOException
Throws:
IOException

writePublicKey

public static byte[] writePublicKey(PublicKey pubKey)
                             throws IOException
Throws:
IOException

toString

public static String toString(AbstractMessage m)
                       throws IOException
Throws:
IOException

toMessage

public static AbstractMessage toMessage(String s)
                                 throws IOException
Throws:
IOException


Copyright © 2009 Beem-project.com. All Rights Reserved.