public abstract class BasicClientControlChannel extends 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, IOException, FTPReplyParseException
public void waitFor(Flag flag, int waitDelay) throws ServerException, IOException, InterruptedException
public abstract void waitFor(Flag flag, int waitDelay, int maxWait) throws ServerException, IOException, InterruptedException
maxWait
- timeout in milisecondsServerException
IOException
InterruptedException
public abstract void abortTransfer()
Copyright © 2016. All rights reserved.