📄 clientftp.html
字号:
Tells the FTP server to send binary files.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.commons.net.ftp.FTPClient"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.apache.commons.net.ftp.FTPClient</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>_connectAction_, _openDataConnection_, abort, allocate, allocate, appendFile, appendFileStream, changeToParentDirectory, changeWorkingDirectory, completePendingCommand, configure, createFileList, createFileList, deleteFile, disconnect, enterLocalActiveMode, enterLocalPassiveMode, enterRemoteActiveMode, enterRemotePassiveMode, getBufferSize, getDataConnectionMode, getPassiveHost, getPassivePort, getRestartOffset, getStatus, getStatus, getSystemName, initiateListParsing, initiateListParsing, initiateListParsing, isRemoteVerificationEnabled, listFiles, listFiles, listFiles, listFiles, listFiles, listHelp, listHelp, listNames, listNames, login, login, logout, makeDirectory, printWorkingDirectory, remoteAppend, remoteRetrieve, remoteStore, remoteStoreUnique, remoteStoreUnique, removeDirectory, rename, retrieveFile, retrieveFileStream, sendNoOp, sendSiteCommand, setBufferSize, setDataTimeout, setFileStructure, setFileTransferMode, setFileType, setFileType, setParserFactory, setRemoteVerificationEnabled, setRestartOffset, storeFile, storeFileStream, storeUniqueFile, storeUniqueFile, storeUniqueFileStream, storeUniqueFileStream, structureMount</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.commons.net.ftp.FTP"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.apache.commons.net.ftp.FTP</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>abor, acct, addProtocolCommandListener, allo, allo, appe, cdup, cwd, dele, getControlEncoding, getReply, getReplyCode, getReplyString, getReplyStrings, help, help, list, list, mkd, mode, nlst, nlst, noop, pass, pasv, port, pwd, quit, rein, removeProtocolCommandListener, rest, retr, rmd, rnfr, rnto, sendCommand, sendCommand, sendCommand, sendCommand, setControlEncoding, site, smnt, stat, stat, stor, stou, stou, stru, syst, type, type, user</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.commons.net.telnet.TelnetClient"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.apache.commons.net.telnet.TelnetClient</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>addOptionHandler, deleteOptionHandler, getInputStream, getLocalOptionState, getOutputStream, getReaderThread, getRemoteOptionState, registerNotifHandler, registerSpyStream, sendAYT, setReaderThread, stopSpyStream, unregisterNotifHandler</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.commons.net.SocketClient"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.apache.commons.net.SocketClient</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>connect, connect, connect, connect, connect, connect, getDefaultPort, getDefaultTimeout, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getSoLinger, getSoTimeout, getTcpNoDelay, isConnected, setDefaultPort, setDefaultTimeout, setSocketFactory, setSoLinger, setSoTimeout, setTcpNoDelay, verifyRemote</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="TERMINAL_TYPE"><!-- --></A><H3>TERMINAL_TYPE</H3><PRE>protected static final int <B>TERMINAL_TYPE</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.archive.net.ClientFTP.TERMINAL_TYPE">Constant Field Values</A></DL></DL><HR><A NAME="TERMINAL_TYPE_SEND"><!-- --></A><H3>TERMINAL_TYPE_SEND</H3><PRE>protected static final int <B>TERMINAL_TYPE_SEND</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.archive.net.ClientFTP.TERMINAL_TYPE_SEND">Constant Field Values</A></DL></DL><HR><A NAME="TERMINAL_TYPE_IS"><!-- --></A><H3>TERMINAL_TYPE_IS</H3><PRE>protected static final int <B>TERMINAL_TYPE_IS</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.archive.net.ClientFTP.TERMINAL_TYPE_IS">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ClientFTP()"><!-- --></A><H3>ClientFTP</H3><PRE>public <B>ClientFTP</B>()</PRE><DL><DD>Constructs a new <code>ClientFTP</code>.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="connectStrict(java.lang.String, int)"><!-- --></A><H3>connectStrict</H3><PRE>public void <B>connectStrict</B>(java.lang.String host, int port) throws java.io.IOException</PRE><DL><DD>Connects to the FTP server at the given host and port.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>host</CODE> - the host of the FTP server to connect to<DD><CODE>port</CODE> - the port the FTP server listens on<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if the connection cannot be made due to IO error<DD><CODE><A HREF="../../../org/archive/net/FTPException.html" title="class in org.archive.net">FTPException</A></CODE> - if the server refuses the connection</DL></DD></DL><HR><A NAME="loginStrict(java.lang.String, java.lang.String)"><!-- --></A><H3>loginStrict</H3><PRE>public void <B>loginStrict</B>(java.lang.String user, java.lang.String pass) throws java.io.IOException</PRE><DL><DD>Login to the FTP server with the given username and password.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - the username to login under<DD><CODE>pass</CODE> - the password to use<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if a network error occurs<DD><CODE><A HREF="../../../org/archive/net/FTPException.html" title="class in org.archive.net">FTPException</A></CODE> - if the login is rejected by the server<DD><CODE>org.apache.commons.net.ftp.FTPConnectionClosedException</CODE> - if the FTP server prematurely closes the connection (for instance, if the client was idle for too long)</DL></DD></DL><HR><A NAME="setBinary()"><!-- --></A><H3>setBinary</H3><PRE>public void <B>setBinary</B>() throws java.io.IOException</PRE><DL><DD>Tells the FTP server to send binary files.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if a network error occurs<DD><CODE><A HREF="../../../org/archive/net/FTPException.html" title="class in org.archive.net">FTPException</A></CODE> - if the server rejects the command<DD><CODE>org.apache.commons.net.ftp.FTPConnectionClosedException</CODE> - if the FTP server prematurely closes the connection (for instance, if the client was idle for too long)</DL></DD></DL><HR><A NAME="openDataConnection(int, java.lang.String)"><!-- --></A><H3>openDataConnection</H3><PRE>public java.net.Socket <B>openDataConnection</B>(int command, java.lang.String path) throws java.io.IOException</PRE><DL><DD>Opens a data connection.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>command</CODE> - the data command (eg, RETR or LIST)<DD><CODE>path</CODE> - the path of the file to retrieve<DT><B>Returns:</B><DD>the socket to read data from<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if a network error occurs<DD><CODE><A HREF="../../../org/archive/net/FTPException.html" title="class in org.archive.net">FTPException</A></CODE> - if a protocol error occurs</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClientFTP.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../org/archive/net/DownloadURLConnection.html" title="class in org.archive.net"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/archive/net/ClientFTP.html" target="_top"><B>FRAMES</B></A> <A HREF="ClientFTP.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 2003-2006 Internet Archive. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -