net.java.otr4j.io
Class OtrInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
net.java.otr4j.io.OtrInputStream
- All Implemented Interfaces:
- Closeable, SerializationConstants
public class OtrInputStream
- extends FilterInputStream
- implements SerializationConstants
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OtrInputStream
public OtrInputStream(InputStream in)
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.