|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.indy.BaseComponent | +--org.indy.IndyComponent | +--org.indy.TCPClient
Description of the Class
Inner classes inherited from class org.indy.IndyComponent |
IndyComponent.WorkMode |
Field Summary | |
protected java.lang.String |
boundIP
Description of the Field |
protected int |
boundPort
Description of the Field |
protected Connection |
connection
DOCUMENT ME! |
protected java.lang.String |
host
Description of the Field |
protected IOHandlerSocket |
ioHandler
DOCUMENT ME! |
protected javax.swing.event.EventListenerList |
listenerList
DOCUMENT ME! |
protected java.lang.String |
password
Description of the Field |
protected int |
port
Description of the Field |
protected java.lang.String |
username
Description of the Field |
Constructor Summary | |
TCPClient()
Constructor for the IdTCPClient object |
Method Summary | |
void |
addTCPClientListener(TCPClientListener l)
DOCUMENT ME! |
java.lang.String |
allData()
DOCUMENT ME! |
void |
connect()
Description of the Method |
void |
connect(int timeout)
Description of the Method |
java.lang.String |
connectAndGetAll()
Description of the Method |
byte[] |
currentReadBuffer()
DOCUMENT ME! |
void |
disconnect()
DOCUMENT ME! |
java.lang.String |
getBoundIP()
Gets the boundIP attribute of the IdTCPClient object |
int |
getBoundPort()
Gets the boundPort attribute of the IdTCPClient object |
java.lang.String |
getHost()
Gets the host attribute of the IdTCPClient object |
IOHandlerSocket |
getIOHandler()
DOCUMENT ME! |
int |
getMaximumLineLength()
DOCUMENT ME! |
java.lang.String |
getPassword()
Gets the password attribute of the IdTCPClient object |
int |
getPort()
Gets the port attribute of the IdTCPClient object |
int |
getReadTimeOut()
DOCUMENT ME! |
java.lang.String |
getUsername()
Gets the username attribute of the IdTCPClient object |
boolean |
isConnected()
DOCUMENT ME! |
void |
readBuffer(byte[] b,
int len)
DOCUMENT ME! |
char |
readChar()
DOCUMENT ME! |
int |
readInt()
DOCUMENT ME! |
java.lang.String |
readLine()
DOCUMENT ME! |
java.lang.String |
readLine(int timeout,
int maxLineLength)
DOCUMENT ME! |
java.lang.String |
readLineWait()
DOCUMENT ME! |
java.lang.String |
readLineWait(int failCount)
DOCUMENT ME! |
long |
readLong()
DOCUMENT ME! |
short |
readShort()
DOCUMENT ME! |
java.io.InputStream |
readStream(int byteCount,
boolean readUntilDisconnect)
DOCUMENT ME! |
void |
removeTCPClientListener(TCPClientListener l)
DOCUMENT ME! |
void |
setBoundIP(java.lang.String newBoundIP)
Sets the boundIP attribute of the IdTCPClient object |
void |
setBoundPort(int port)
Sets the boundPort attribute of the IdTCPClient object |
void |
setHost(java.lang.String newHost)
Sets the host attribute of the IdTCPClient object |
void |
setIOHandler(IOHandlerSocket ioHandler)
DOCUMENT ME! |
void |
setMaximumLineLength(int newLen)
DOCUMENT ME! |
void |
setPassword(java.lang.String newPassword)
Sets the password attribute of the IdTCPClient object |
void |
setPort(int newPort)
Sets the port attribute of the IdTCPClient object |
void |
setReadTimeOut(int timeout)
DOCUMENT ME! |
void |
setUsername(java.lang.String newUsername)
Sets the username attribute of the IdTCPClient object |
void |
write(java.lang.String s)
DOCUMENT ME! |
void |
writeBuffer(byte[] buf)
DOCUMENT ME! |
void |
writeFile(java.io.File f)
DOCUMENT ME! |
void |
writeHeader(StringList header)
DOCUMENT ME! |
void |
writeInt(int value)
DOCUMENT ME! |
void |
writeLine(java.lang.String line)
DOCUMENT ME! |
void |
writeLong(long value)
DOCUMENT ME! |
void |
writeRFCReply(RFCReply reply)
DOCUMENT ME! |
void |
writeRFCStrings(StringList strings)
DOCUMENT ME! |
void |
writeShort(short value)
DOCUMENT ME! |
void |
writeStream(java.io.InputStream stream,
int len,
boolean writeByteCount)
DOCUMENT ME! |
void |
writeStrings(StringList strings,
boolean writeLineCount)
DOCUMENT ME! |
Methods inherited from class org.indy.IndyComponent |
addComponentListener, doBeginWork, doBeginWork, doEndWork, doStatus, doStatus, doWork, getLocalName, removeComponentListener |
Methods inherited from class org.indy.BaseComponent |
getVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.swing.event.EventListenerList listenerList
protected java.lang.String host
protected int port
protected java.lang.String boundIP
protected int boundPort
protected java.lang.String username
protected java.lang.String password
protected IOHandlerSocket ioHandler
protected Connection connection
Constructor Detail |
public TCPClient()
Method Detail |
public void connect() throws IndyException
IdException
- Description of the Exceptionpublic void connect(int timeout) throws IndyException
timeout
- Description of the ParameterIdException
- Description of the Exceptionpublic java.lang.String connectAndGetAll()
public java.lang.String readLineWait(int failCount) throws IndyIOException, ReadTimedOutException, PeerDisconnectedException, MaxLineLengthExceededException, NotConnectedException
failCount
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!MaxLineLengthExceededException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public java.lang.String readLineWait() throws IndyIOException, ReadTimedOutException, PeerDisconnectedException, MaxLineLengthExceededException, NotConnectedException
IndyIOException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!MaxLineLengthExceededException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public java.lang.String readLine() throws PeerDisconnectedException, ReadTimedOutException, IndyIOException, MaxLineLengthExceededException, NotConnectedException
PeerDisconnectedException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!MaxLineLengthExceededException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public java.lang.String readLine(int timeout, int maxLineLength) throws IndyIOException, ReadTimedOutException, PeerDisconnectedException, NotConnectedException, MaxLineLengthExceededException
timeout
- DOCUMENT ME!maxLineLength
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!MaxLineLengthExceededException
- DOCUMENT ME!public void readBuffer(byte[] b, int len) throws PeerDisconnectedException, ReadTimedOutException, IndyIOException, NotConnectedException
b
- DOCUMENT ME!len
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public int readInt() throws PeerDisconnectedException, ReadTimedOutException, IndyIOException, NotConnectedException
PeerDisconnectedException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public long readLong() throws PeerDisconnectedException, ReadTimedOutException, IndyIOException, NotConnectedException
PeerDisconnectedException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public char readChar() throws PeerDisconnectedException, ReadTimedOutException, IndyIOException, NotConnectedException
PeerDisconnectedException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public short readShort() throws PeerDisconnectedException, ReadTimedOutException, IndyIOException, NotConnectedException
PeerDisconnectedException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public java.io.InputStream readStream(int byteCount, boolean readUntilDisconnect) throws PeerDisconnectedException, ReadTimedOutException, NotConnectedException, IndyIOException
byteCount
- DOCUMENT ME!readUntilDisconnect
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!public void writeRFCStrings(StringList strings) throws IndyException
strings
- DOCUMENT ME!IndyException
- DOCUMENT ME!public void writeRFCReply(RFCReply reply) throws IndyException
reply
- DOCUMENT ME!IndyException
- DOCUMENT ME!public void write(java.lang.String s) throws IndyIOException, PeerDisconnectedException, NotConnectedException
s
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public void writeBuffer(byte[] buf) throws IndyIOException, PeerDisconnectedException, NotConnectedException
buf
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public void writeLine(java.lang.String line) throws IndyIOException, PeerDisconnectedException, NotConnectedException
line
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public void writeHeader(StringList header) throws PeerDisconnectedException, IndyIOException, NotConnectedException
header
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public void writeInt(int value) throws PeerDisconnectedException, IndyIOException, NotConnectedException
value
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public void writeLong(long value) throws PeerDisconnectedException, IndyIOException, NotConnectedException
value
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public void writeShort(short value) throws PeerDisconnectedException, IndyIOException, NotConnectedException
value
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public void writeStrings(StringList strings, boolean writeLineCount) throws PeerDisconnectedException, IndyIOException, NotConnectedException
strings
- DOCUMENT ME!writeLineCount
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public void writeStream(java.io.InputStream stream, int len, boolean writeByteCount) throws PeerDisconnectedException, IndyIOException, NotConnectedException
stream
- DOCUMENT ME!len
- DOCUMENT ME!writeByteCount
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public void writeFile(java.io.File f) throws java.io.FileNotFoundException, PeerDisconnectedException, IndyIOException, NotConnectedException
f
- DOCUMENT ME!java.io.FileNotFoundException
- DOCUMENT ME!PeerDisconnectedException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public byte[] currentReadBuffer() throws PeerDisconnectedException, IndyIOException
PeerDisconnectedException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!public java.lang.String allData() throws PeerDisconnectedException, ReadTimedOutException, IndyIOException, NotConnectedException
PeerDisconnectedException
- DOCUMENT ME!ReadTimedOutException
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!NotConnectedException
- DOCUMENT ME!public void disconnect() throws IndyIOException
IndyIOException
- DOCUMENT ME!public void addTCPClientListener(TCPClientListener l)
l
- DOCUMENT ME!public void removeTCPClientListener(TCPClientListener l)
l
- DOCUMENT ME!public void setBoundIP(java.lang.String newBoundIP)
newBoundIP
- The new boundIP valuepublic void setBoundPort(int port)
port
- The new boundPort valuepublic void setHost(java.lang.String newHost)
newHost
- The new host valuepublic void setPort(int newPort)
newPort
- The new port valuepublic void setUsername(java.lang.String newUsername)
newUsername
- The new username valuepublic void setPassword(java.lang.String newPassword)
newPassword
- The new password valuepublic void setMaximumLineLength(int newLen)
newLen
- DOCUMENT ME!public void setReadTimeOut(int timeout) throws IndyIOException
timeout
- DOCUMENT ME!IndyIOException
- DOCUMENT ME!public void setIOHandler(IOHandlerSocket ioHandler)
ioHandler
- DOCUMENT ME!public java.lang.String getBoundIP()
public int getBoundPort()
public java.lang.String getHost()
public int getPort()
public java.lang.String getUsername()
public java.lang.String getPassword()
public int getMaximumLineLength()
public int getReadTimeOut() throws IndyIOException
IndyIOException
- DOCUMENT ME!public boolean isConnected()
public IOHandlerSocket getIOHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |