public class OtrInputStream extends FilterInputStream implements SerializationConstants
inDATA_LEN, ERROR_PREFIX, 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 and Description |
|---|
OtrInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
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() |
available, close, mark, markSupported, read, read, read, reset, skippublic OtrInputStream(InputStream in)
public int readByte()
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic int readShort()
throws IOException
IOExceptionpublic byte[] readCtr()
throws IOException
IOExceptionpublic byte[] readMac()
throws IOException
IOExceptionpublic BigInteger readBigInt() throws IOException
IOExceptionpublic byte[] readData()
throws IOException
IOExceptionpublic PublicKey readPublicKey() throws IOException
IOExceptionpublic DHPublicKey readDHPublicKey() throws IOException
IOExceptionpublic byte[] readTlvData()
throws IOException
IOExceptionpublic byte[] readSignature(PublicKey pubKey) throws IOException
IOExceptionpublic SignatureX readMysteriousX() throws IOException
IOExceptionCopyright © 2015. All rights reserved.