|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.walluck.io.DataInputStreamEx
org.walluck.io.LittleEndianInputStream
org.walluck.oscar.AIMInputStream
public class AIMInputStream
This does most of the input work.
LittleEndianInputStream| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
AIMInputStream(InputStream is)
Create a new input stream. |
|
| Method Summary | |
|---|---|
int |
getEmpty()
Get the number of bytes remaining in this buffer before it becomes empty. |
boolean |
isEmpty()
Returns true if this buffer is empty. |
Ad |
readAd()
Read an ad from this stream. |
int |
readCaps(int length)
Read a non-short capability block from the stream. |
int |
readCaps(int length,
boolean isShort)
Read a capability block from the stream. |
DirectIMHeader |
readDirectIMHeader()
Read a direct IM from this stream. |
FileHeader |
readFileHeader()
Read a file header from this stream. |
FLAP |
readFLAP()
Read a FLAP from this stream. |
FTTLV |
readFTTLV()
Read a file transfer TLV from this stream. |
ArrayList |
readGetFileEntries()
Read a set GetFile entries from this stream. |
GetFileList |
readGetFileList()
Read a GetFile listing from this stream. |
ICQColor |
readICQColor()
Read an ICQ color from this stream. |
String |
readIP()
Read an IP from this stream. |
ODirInfo |
readODirInfo()
Read an OSCAR directory information class from this stream. |
AIMPopup |
readPopup()
Read a popup from this stream. |
ProxyPacket |
readProxyPacket()
Read an AOL Proxy Server packet from this stream. |
RateClass |
readRateClass()
Read a rate class from this stream. |
Chat |
readRoomInfo()
Read room information from this stream. |
SNAC |
readSNAC()
Read a SNAC from this stream. |
TLVChain |
readTLVChain()
Read a TLV chain from this stream. |
TLVChain |
readTLVChain(int length)
Read a TLV chain from this stream of the specified length. |
TLVChain |
readTLVChainByCount(int count)
Read a TLV chain from the input stream made up of exactly the specified number of TLV's. |
UserInfo |
readUserInfo()
Read a user information class from this stream. |
| Methods inherited from class org.walluck.io.LittleEndianInputStream |
|---|
readIntLE, readShortLE, readStringLLLE |
| Methods inherited from class org.walluck.io.DataInputStreamEx |
|---|
readBytes, readString, readString0, readStringL, readStringLL, readStringNullPadded, readStringUntilNull |
| Methods inherited from class java.io.DataInputStream |
|---|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes |
| Methods inherited from class java.io.FilterInputStream |
|---|
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AIMInputStream(InputStream is)
is - the underlying input stream| Method Detail |
|---|
public FLAP readFLAP()
throws IOException
IOException - if an error occurs
public SNAC readSNAC()
throws IOException
IOException - if an error occurs
public TLVChain readTLVChain(int length)
throws IOException
length - the length of the TLV chain to read in, in bytes
IOException - if an error occurs
public TLVChain readTLVChain()
throws IOException
IOException - if an error occurs
public TLVChain readTLVChainByCount(int count)
throws IOException
count - the number of TLV's comprising this TLV chain
IOException - if an error occurs
public FTTLV readFTTLV()
throws IOException
IOException - if an error occurs
public int readCaps(int length,
boolean isShort)
throws IOException
length - the length of the capability blockisShort - true if this is a short capability block, false otherwise
IOException - if an error occurs
public int readCaps(int length)
throws IOException
length - the length of the capability block
IOException - if an error occurs
public UserInfo readUserInfo()
throws IOException
IOException - if an error occurs
public ODirInfo readODirInfo()
throws IOException
IOException - if an error occurs
public Chat readRoomInfo()
throws IOException
IOException - if an error occurs
public Ad readAd()
throws IOException
IOException - if an error occurs
public AIMPopup readPopup()
throws IOException
IOException - if an error occurs
public RateClass readRateClass()
throws IOException
IOException - if an error occurs
public DirectIMHeader readDirectIMHeader()
throws IOException
IOException - if an error occurs
public FileHeader readFileHeader()
throws IOException
IOException - if an error occurs
public ArrayList readGetFileEntries()
throws IOException
IOException - if an error occurs
public GetFileList readGetFileList()
throws IOException
IOException - if an error occurs
public ProxyPacket readProxyPacket()
throws IOException
IOException - if an error occurs
public ICQColor readICQColor()
throws IOException
IOException - if an error occurs
public String readIP()
throws IOException
IOException - if an error occurs
public int getEmpty()
throws IOException
IOException - if an error occurs
public boolean isEmpty()
throws IOException
IOException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||