public class AIMInputStream extends LittleEndianInputStream
LittleEndianInputStream
in
Constructor and Description |
---|
AIMInputStream(InputStream is)
Create a new input stream.
|
Modifier and Type | Method and Description |
---|---|
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.
|
readIntLE, readShortLE, readStringLLLE
readBytes, readString, readString0, readStringL, readStringLL, readStringNullPadded, readStringUntilNull
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
available, close, mark, markSupported, read, reset, skip
public AIMInputStream(InputStream is)
is
- the underlying input streampublic FLAP readFLAP() throws IOException
IOException
- if an error occurspublic SNAC readSNAC() throws IOException
IOException
- if an error occurspublic TLVChain readTLVChain(int length) throws IOException
length
- the length of the TLV chain to read in, in bytesIOException
- if an error occurspublic TLVChain readTLVChain() throws IOException
IOException
- if an error occurspublic TLVChain readTLVChainByCount(int count) throws IOException
count
- the number of TLV's comprising this TLV chainIOException
- if an error occurspublic FTTLV readFTTLV() throws IOException
IOException
- if an error occurspublic int readCaps(int length, boolean isShort) throws IOException
length
- the length of the capability blockisShort
- true if this is a short capability block, false otherwiseIOException
- if an error occurspublic int readCaps(int length) throws IOException
length
- the length of the capability blockIOException
- if an error occurspublic UserInfo readUserInfo() throws IOException
IOException
- if an error occurspublic ODirInfo readODirInfo() throws IOException
IOException
- if an error occurspublic Chat readRoomInfo() throws IOException
IOException
- if an error occurspublic Ad readAd() throws IOException
IOException
- if an error occurspublic AIMPopup readPopup() throws IOException
IOException
- if an error occurspublic RateClass readRateClass() throws IOException
IOException
- if an error occurspublic DirectIMHeader readDirectIMHeader() throws IOException
IOException
- if an error occurspublic FileHeader readFileHeader() throws IOException
IOException
- if an error occurspublic ArrayList readGetFileEntries() throws IOException
IOException
- if an error occurspublic GetFileList readGetFileList() throws IOException
IOException
- if an error occurspublic ProxyPacket readProxyPacket() throws IOException
IOException
- if an error occurspublic ICQColor readICQColor() throws IOException
IOException
- if an error occurspublic String readIP() throws IOException
IOException
- if an error occurspublic int getEmpty() throws IOException
IOException
- if an error occurspublic boolean isEmpty() throws IOException
IOException
- if an error occurs