protected class FTPServerFacade.LocalControlChannel extends BasicClientControlChannel implements BasicServerControlChannel
WAIT_FOREVER
Constructor and Description |
---|
LocalControlChannel() |
Modifier and Type | Method and Description |
---|---|
void |
abortTransfer() |
int |
getReplyCount() |
protected Reply |
pop() |
protected void |
push(Reply newReply) |
Reply |
read() |
boolean |
ready() |
void |
resetReplyCount()
set reply count to 0.
|
void |
waitFor(Flag aborted,
int ioDelay,
int maxWait)
Block until reply is waiting in the control channel,
or after timeout (maxWait), or when flag changes to true.
|
void |
write(Reply reply)
write reply to the control channel
|
waitFor
protected void push(Reply newReply)
protected Reply pop() throws InterruptedException
InterruptedException
public boolean ready()
public int getReplyCount()
getReplyCount
in interface BasicServerControlChannel
public void resetReplyCount()
BasicServerControlChannel
resetReplyCount
in interface BasicServerControlChannel
public Reply read() throws IOException, FTPReplyParseException, ServerException
read
in class BasicClientControlChannel
IOException
FTPReplyParseException
ServerException
public void write(Reply reply)
BasicServerControlChannel
write
in interface BasicServerControlChannel
public void waitFor(Flag aborted, int ioDelay, int maxWait) throws ServerException, IOException, InterruptedException
BasicClientControlChannel
waitFor
in class BasicClientControlChannel
maxWait
- timeout in milisecondsServerException
IOException
InterruptedException
public void abortTransfer()
abortTransfer
in class BasicClientControlChannel
Copyright © 2016. All rights reserved.