net.java.otr4j.io
Class OtrOutputStream

Package class diagram package OtrOutputStream
java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by net.java.otr4j.io.OtrOutputStream
All Implemented Interfaces:
Closeable, Flushable, SerializationConstants

public class OtrOutputStream
extends FilterOutputStream
implements SerializationConstants


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Fields inherited from interface net.java.otr4j.io.SerializationConstants
DATA_LEN, HEAD, HEAD_ENCODED, HEAD_ERROR, HEAD_QUERY_Q, HEAD_QUERY_V, TLV_LEN, TYPE_LEN_BYTE, TYPE_LEN_CTR, TYPE_LEN_INT, TYPE_LEN_MAC, TYPE_LEN_SHORT
 
Constructor Summary
OtrOutputStream(OutputStream out)
           
 
Method Summary
 void writeBigInt(BigInteger bi)
           
 void writeByte(int b)
           
 void writeCtr(byte[] ctr)
           
 void writeData(byte[] b)
           
 void writeDHPublicKey(DHPublicKey dhPublicKey)
           
 void writeInt(int i)
           
 void writeMac(byte[] mac)
           
 void writeMysteriousT(MysteriousT t)
           
 void writeMysteriousX(SignatureM m)
           
 void writeMysteriousX(SignatureX x)
           
 void writePublicKey(PublicKey pubKey)
           
 void writeShort(int s)
           
 void writeSignature(byte[] signature, PublicKey pubKey)
           
 void writeTlvData(byte[] b)
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OtrOutputStream

public OtrOutputStream(OutputStream out)
Method Detail

writeBigInt

public void writeBigInt(BigInteger bi)
                 throws IOException
Throws:
IOException

writeByte

public void writeByte(int b)
               throws IOException
Throws:
IOException

writeData

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

writeInt

public void writeInt(int i)
              throws IOException
Throws:
IOException

writeShort

public void writeShort(int s)
                throws IOException
Throws:
IOException

writeMac

public void writeMac(byte[] mac)
              throws IOException
Throws:
IOException

writeCtr

public void writeCtr(byte[] ctr)
              throws IOException
Throws:
IOException

writeDHPublicKey

public void writeDHPublicKey(DHPublicKey dhPublicKey)
                      throws IOException
Throws:
IOException

writePublicKey

public void writePublicKey(PublicKey pubKey)
                    throws IOException
Throws:
IOException

writeTlvData

public void writeTlvData(byte[] b)
                  throws IOException
Throws:
IOException

writeSignature

public void writeSignature(byte[] signature,
                           PublicKey pubKey)
                    throws IOException
Throws:
IOException

writeMysteriousX

public void writeMysteriousX(SignatureX x)
                      throws IOException
Throws:
IOException

writeMysteriousX

public void writeMysteriousX(SignatureM m)
                      throws IOException
Throws:
IOException

writeMysteriousT

public void writeMysteriousT(MysteriousT t)
                      throws IOException
Throws:
IOException


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