net.java.otr4j.io
Class OtrOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
net.java.otr4j.io.OtrOutputStream
- All Implemented Interfaces:
- Closeable, Flushable, SerializationConstants
public class OtrOutputStream
- extends FilterOutputStream
- 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 |
OtrOutputStream
public OtrOutputStream(OutputStream out)
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.