final class FtpDataSocket extends Object
Modifier and Type | Field and Description |
---|---|
(package private) FtpContext |
context |
private FtpControlSocket |
control |
private Socket |
data |
private ServerSocket |
dataserver |
Constructor and Description |
---|
FtpDataSocket(Ftp client) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
close() |
(package private) String |
getConnect() |
(package private) String |
getConnect(String reply) |
(package private) String |
getConnectAddress(String connect) |
(package private) int |
getConnectPort(String connect) |
(package private) InputStream |
getInputStream(String commandline,
char type) |
(package private) OutputStream |
getOutputStream(String commandline,
char type) |
(package private) void |
openActiveDataSocket(String commandline,
char type) |
(package private) void |
openDataSocket(String commandline,
char type) |
(package private) void |
openPassiveDataSocket(String commandline,
char type) |
private ServerSocket dataserver
FtpContext context
private FtpControlSocket control
FtpDataSocket(Ftp client) throws IOException
IOException
String getConnect(String reply) throws NumberFormatException
NumberFormatException
String getConnectAddress(String connect) throws NumberFormatException
connect
- Remote hostport number string.NumberFormatException
int getConnectPort(String connect) throws NumberFormatException, NoSuchElementException
connect
- Remote hostport number string.NumberFormatException
NoSuchElementException
void openPassiveDataSocket(String commandline, char type) throws IOException
IOException
String getConnect() throws UnknownHostException
UnknownHostException
void openActiveDataSocket(String commandline, char type) throws IOException
IOException
void openDataSocket(String commandline, char type) throws IOException
IOException
InputStream getInputStream(String commandline, char type) throws IOException
IOException
OutputStream getOutputStream(String commandline, char type) throws IOException
IOException
void close() throws IOException
IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses