protected class FTPServerFacade.LocalControlChannel extends BasicClientControlChannel implements BasicServerControlChannel
WAIT_FOREVER
Constructor and Description |
---|
FTPServerFacade.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 java.lang.InterruptedException
java.lang.InterruptedException
public boolean ready()
public int getReplyCount()
getReplyCount
in interface BasicServerControlChannel
public void resetReplyCount()
BasicServerControlChannel
resetReplyCount
in interface BasicServerControlChannel
public Reply read() throws java.io.IOException, FTPReplyParseException, ServerException
read
in class BasicClientControlChannel
java.io.IOException
FTPReplyParseException
ServerException
public void write(Reply reply)
BasicServerControlChannel
write
in interface BasicServerControlChannel
public void waitFor(Flag aborted, int ioDelay, int maxWait) throws ServerException, java.io.IOException, java.lang.InterruptedException
BasicClientControlChannel
waitFor
in class BasicClientControlChannel
maxWait
- timeout in milisecondsServerException
java.io.IOException
java.lang.InterruptedException
public void abortTransfer()
abortTransfer
in class BasicClientControlChannel
Copyright © 2013. All Rights Reserved.