net.java.otr4j.io
Class OtrInputStream

Package class diagram package OtrInputStream
java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by net.java.otr4j.io.OtrInputStream
All Implemented Interfaces:
Closeable, SerializationConstants

public class OtrInputStream
extends FilterInputStream
implements SerializationConstants


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
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
OtrInputStream(InputStream in)
           
 
Method Summary
 BigInteger readBigInt()
           
 int readByte()
           
 byte[] readCtr()
           
 byte[] readData()
           
 DHPublicKey readDHPublicKey()
           
 int readInt()
           
 byte[] readMac()
           
 SignatureX readMysteriousX()
           
 PublicKey readPublicKey()
           
 int readShort()
           
 byte[] readSignature(PublicKey pubKey)
           
 byte[] readTlvData()
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OtrInputStream

public OtrInputStream(InputStream in)
Method Detail

readByte

public int readByte()
             throws IOException
Throws:
IOException

readInt

public int readInt()
            throws IOException
Throws:
IOException

readShort

public int readShort()
              throws IOException
Throws:
IOException

readCtr

public byte[] readCtr()
               throws IOException
Throws:
IOException

readMac

public byte[] readMac()
               throws IOException
Throws:
IOException

readBigInt

public BigInteger readBigInt()
                      throws IOException
Throws:
IOException

readData

public byte[] readData()
                throws IOException
Throws:
IOException

readPublicKey

public PublicKey readPublicKey()
                        throws IOException
Throws:
IOException

readDHPublicKey

public DHPublicKey readDHPublicKey()
                            throws IOException
Throws:
IOException

readTlvData

public byte[] readTlvData()
                   throws IOException
Throws:
IOException

readSignature

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

readMysteriousX

public SignatureX readMysteriousX()
                           throws IOException
Throws:
IOException


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