|
|||||||||
| 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
public class AIMOutputStream
An output stream that supports 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(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(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. |
| 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(OutputStream os)
os - the underlying output stream to usepublic AIMOutputStream()
public AIMOutputStream(int size)
size - the size of this output stream| Method Detail |
|---|
public void writeFLAP(FLAP flap)
throws IOException
flap - the FLAP to write
IOException - if an error occurs
public void writeSNAC(SNAC snac)
throws IOException
snac - the SNAC to write
IOException - if an error occurs
public void writeTLVChain(TLVChain tlvchain)
throws IOException
tlvchain - the TLV chain to write
IOException - if an error occurs
public void writeFTTLV(FTTLV fttlv)
throws IOException
fttlv - the file transfer TLV to write
IOException - if an error occurs
public void writeCaps(int caps)
throws IOException
caps - the capability block to write
IOException - if an error occurs
public void writeUserInfo(UserInfo info)
throws IOException
info - the user info class to write
IOException - if an error occurs
public void writeStats(ArrayList stats,
int type)
throws IOException
stats - the stats vectortype - the type of stat to write
IOException - if an error occurs
public void writeDirectIMHeader(DirectIMHeader dh)
throws IOException
dh - the direct IM header
IOException - if an error occurs
public void writeFileHeader(FileHeader fh)
throws IOException
fh - the file header to write
IOException - if an error occurs
public void writeGetFileEntries(ArrayList files)
throws IOException
files - the GetFile entries to write
IOException - if an error occurs
public void writeGetFileList(GetFileList gfl)
throws IOException
gfl - the GetFile listing to write
IOException - if an error occurs
public void writeProxyPacket(ProxyPacket proxyPacket)
throws IOException
proxyPacket - the packet
IOException - if an error occurs
public void writeICQColor(ICQColor color)
throws IOException
color - the ICQ color
IOException - if an error occurs
public void writeICBM(byte[] cookie,
short channel,
String sn)
throws IOException
cookie - the cookiechannel - the channelsn - the screenname
IOException - if an error occurs
public void writeRendezvous(Rendezvous rv)
throws IOException
rv - the Rendezvous to write
IOException - if an error occurs
public byte[] getBytes()
throws IOException
IOException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||