public class AIMOutputStream extends LittleEndianOutputStream
LittleEndianOutputStreamwrittenout| Constructor and Description |
|---|
AIMOutputStream()
Creates a new AIM output stream with the default size of 100 bytes.
|
AIMOutputStream(int size)
Creates a new AIM output stream of the specified size.
|
AIMOutputStream(OutputStream os)
Creates a new AIM output stream given an underlying output stream.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Get the byte array that underlies this stream.
|
void |
writeCaps(int caps)
Write a capability block to this stream.
|
void |
writeDirectIMHeader(DirectIMHeader dh)
Write a direct IM header to this stream.
|
void |
writeFileHeader(FileHeader fh)
Write a file header to this stream.
|
void |
writeFLAP(FLAP flap)
Writes a FLAP to this stream.
|
void |
writeFTTLV(FTTLV fttlv)
Write a file transfer TLV to this stream.
|
void |
writeGetFileEntries(ArrayList files)
Write a set of GetFile entries to this stream.
|
void |
writeGetFileList(GetFileList gfl)
Write a GetFile listing to this stream.
|
void |
writeICBM(byte[] cookie,
short channel,
String sn)
Write an ICBM to this stream.
|
void |
writeICQColor(ICQColor color)
Write an ICQ color to this stream.
|
void |
writeProxyPacket(ProxyPacket proxyPacket)
Write an AOL Proxy packet to this stream.
|
void |
writeRendezvous(Rendezvous rv)
Write a Rendezvous to this stream.
|
void |
writeSNAC(SNAC snac)
Writes a SNAC to this output stream.
|
void |
writeStats(ArrayList stats,
int type)
Write a stats vector to this stream.
|
void |
writeTLVChain(TLVChain tlvchain)
Writes a TLV chain to this output stream.
|
void |
writeUserInfo(UserInfo info)
Write a user info class to this stream.
|
writeIntLE, writeShortLE, writeStringLLLE0writeBytes, writeString, writeString0, writeStringL, writeStringLL, writeStringLL0, writeStringNullPaddedflush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclose, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic AIMOutputStream(OutputStream os)
os - the underlying output stream to usepublic AIMOutputStream()
public AIMOutputStream(int size)
size - the size of this output streampublic void writeFLAP(FLAP flap) throws IOException
flap - the FLAP to writeIOException - if an error occurspublic void writeSNAC(SNAC snac) throws IOException
snac - the SNAC to writeIOException - if an error occurspublic void writeTLVChain(TLVChain tlvchain) throws IOException
tlvchain - the TLV chain to writeIOException - if an error occurspublic void writeFTTLV(FTTLV fttlv) throws IOException
fttlv - the file transfer TLV to writeIOException - if an error occurspublic void writeCaps(int caps)
throws IOException
caps - the capability block to writeIOException - if an error occurspublic void writeUserInfo(UserInfo info) throws IOException
info - the user info class to writeIOException - if an error occurspublic void writeStats(ArrayList stats, int type) throws IOException
stats - the stats vectortype - the type of stat to writeIOException - if an error occurspublic void writeDirectIMHeader(DirectIMHeader dh) throws IOException
dh - the direct IM headerIOException - if an error occurspublic void writeFileHeader(FileHeader fh) throws IOException
fh - the file header to writeIOException - if an error occurspublic void writeGetFileEntries(ArrayList files) throws IOException
files - the GetFile entries to writeIOException - if an error occurspublic void writeGetFileList(GetFileList gfl) throws IOException
gfl - the GetFile listing to writeIOException - if an error occurspublic void writeProxyPacket(ProxyPacket proxyPacket) throws IOException
proxyPacket - the packetIOException - if an error occurspublic void writeICQColor(ICQColor color) throws IOException
color - the ICQ colorIOException - if an error occurspublic void writeICBM(byte[] cookie,
short channel,
String sn)
throws IOException
cookie - the cookiechannel - the channelsn - the screennameIOException - if an error occurspublic void writeRendezvous(Rendezvous rv) throws IOException
rv - the Rendezvous to writeIOException - if an error occurspublic byte[] getBytes()
throws IOException
IOException - if an error occurs