|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
org.walluck.io.DataOutputStreamEx
org.walluck.io.LittleEndianOutputStream
org.walluck.oscar.AIMOutputStream
An output stream thats upports the writing of AIM objects.
LittleEndianOutputStream
Field Summary |
Fields inherited from class java.io.DataOutputStream |
written |
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary | |
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(java.io.OutputStream os)
Creates a new AIM output stream given an underlying output stream. |
Method Summary | |
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(java.util.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,
java.lang.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(java.util.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. |
Methods inherited from class org.walluck.io.LittleEndianOutputStream |
writeIntLE, writeShortLE, writeStringLLLE0 |
Methods inherited from class org.walluck.io.DataOutputStreamEx |
writeBytes, writeString, writeString0, writeStringL, writeStringLL, writeStringLL0, writeStringNullPadded |
Methods inherited from class java.io.DataOutputStream |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from class java.io.FilterOutputStream |
close, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.DataOutput |
write |
Constructor Detail |
public AIMOutputStream(java.io.OutputStream os)
os
- the underlying output stream to usepublic AIMOutputStream()
public AIMOutputStream(int size)
size
- the size of this output streamMethod Detail |
public void writeFLAP(FLAP flap) throws java.io.IOException
flap
- the FLAP to write
java.io.IOException
- if an error occurspublic void writeSNAC(SNAC snac) throws java.io.IOException
snac
- the SNAC to write
java.io.IOException
- if an error occurspublic void writeTLVChain(TLVChain tlvchain) throws java.io.IOException
tlvchain
- the TLV chain to write
java.io.IOException
- if an error occurspublic void writeFTTLV(FTTLV fttlv) throws java.io.IOException
fttlv
- the file transfer TLV to write
java.io.IOException
- if an error occurspublic void writeCaps(int caps) throws java.io.IOException
caps
- the capability block to write
java.io.IOException
- if an error occurspublic void writeUserInfo(UserInfo info) throws java.io.IOException
info
- the user info class to write
java.io.IOException
- if an error occurspublic void writeStats(java.util.ArrayList stats, int type) throws java.io.IOException
stats
- the stats vectortype
- the type of stat to write
java.io.IOException
- if an error occurspublic void writeDirectIMHeader(DirectIMHeader dh) throws java.io.IOException
dh
- the direct IM header
java.io.IOException
- if an error occurspublic void writeFileHeader(FileHeader fh) throws java.io.IOException
fh
- the file header to write
java.io.IOException
- if an error occurspublic void writeGetFileEntries(java.util.ArrayList files) throws java.io.IOException
files
- the GetFile entries to write
java.io.IOException
- if an error occurspublic void writeGetFileList(GetFileList gfl) throws java.io.IOException
gfl
- the GetFile listing to write
java.io.IOException
- if an error occurspublic void writeProxyPacket(ProxyPacket proxyPacket) throws java.io.IOException
proxyPacket
- the packet
java.io.IOException
- if an error occurspublic void writeICQColor(ICQColor color) throws java.io.IOException
color
- the ICQ color
java.io.IOException
- if an error occurspublic void writeICBM(byte[] cookie, short channel, java.lang.String sn) throws java.io.IOException
cookie
- the cookiechannel
- the channelsn
- the screenname
java.io.IOException
- if an error occurspublic void writeRendezvous(Rendezvous rv) throws java.io.IOException
rv
- the Rendezvous to write
java.io.IOException
- if an error occurspublic byte[] getBytes() throws java.io.IOException
java.io.IOException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |