I assume you are referring to Commons NET here.
You should probably use isAvailable() instead as that performs more checks.
However as the method Javadoc says, the only sure way to check if the
connection is still available is to use it.
Commons NET does not provide idle connection checking and
I think the connection to a FTP server can be lost. Reasons can be, network
disconnection or client idling.
If that happens, can I be notified of the disconnection? I cannot find any
"event" for that. Should I keep polling the state by periodically calling
"isConnected()"?
--
>Why? I'm not asking you, Tim, I just wonder why one would >they invent their
>own dialect of an existing format? The stream >indetifier is a 14 bytes and
>the checksum is a few bytes per >chunk that are actually helpful.
Couldn't agree more.
---