public abstract class BasicClientControlChannel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
WAIT_FOREVER |
Constructor and Description |
---|
BasicClientControlChannel() |
Modifier and Type | Method and Description |
---|---|
abstract void |
abortTransfer() |
abstract Reply |
read() |
void |
waitFor(Flag flag,
int waitDelay)
Return when reply is waiting
|
abstract void |
waitFor(Flag flag,
int waitDelay,
int maxWait)
Block until reply is waiting in the control channel,
or after timeout (maxWait), or when flag changes to true.
|
public static final int WAIT_FOREVER
public abstract Reply read() throws ServerException, java.io.IOException, FTPReplyParseException
ServerException
java.io.IOException
FTPReplyParseException
public void waitFor(Flag flag, int waitDelay) throws ServerException, java.io.IOException, java.lang.InterruptedException
ServerException
java.io.IOException
java.lang.InterruptedException
public abstract void waitFor(Flag flag, int waitDelay, int maxWait) throws ServerException, java.io.IOException, java.lang.InterruptedException
maxWait
- timeout in milisecondsServerException
java.io.IOException
java.lang.InterruptedException
public abstract void abortTransfer()