文件名称:USEFTPAPPLET
介绍说明--下载内容均来自于网络,请自行研究使用
摘要:Java源码,网络相关,FTP
Java编写实现一个FTP客户端程序,通过该客户端连接指定的服务器。useFtpApplet 类继承了Applet 类,在init()中实现的是此Applet 的初始化,设置布局和背景,建立文本、标签和文本域。
Connect()方法使用主机地址、用户名和密码作为参数,建立与主机的连接。使用new 生成新的FtpClient 类实例,使用login()方法登录FTP 服务器,调用showFileContents()方法显示文件内容。
Stop()方法使用FtpClient 对象的closeServer()方法关闭服务器连接。
Action()方法监听按钮,并对发生的按钮事件进行处理,通过使用判定语句evt.target == BtnConn来跟踪用户是否单击连接按钮,如果发生单击事件,则通过调用connect()方法来进行连接。如果evt.target == BtnClose 则调用stop()方法来断开连接。
SendFile()方法实现的是上载文件的功能。ShowFileContents()方法显示文件内容。在main()方法中生成此类实例,初始化线程,启动线程。-Summary: Java source code, network-related, FTP
Java prepared to achieve an FTP client program, through which clients connect to the specified server. useFtpApplet class inherits Applet class, init () is initialized in the realization of this Applet, set the layout and background, the establishment of the text, labels and text fields.
Connect () method uses the host address, user name and password as parameters to establish a connection with the host. FtpClient using the new generation of new class instance, use login () method FTP server, call showFileContents () method to display the contents of the file.
Stop () method uses FtpClient object closeServer () method to close the server connection.
Action () method listening button, and button events are processed through the use of judgment statement evt.target == BtnConn to track whether the user click the Connect button, if you click an event occurs, by calling the connect () method to connection. If evt.target == BtnClose calling
Java编写实现一个FTP客户端程序,通过该客户端连接指定的服务器。useFtpApplet 类继承了Applet 类,在init()中实现的是此Applet 的初始化,设置布局和背景,建立文本、标签和文本域。
Connect()方法使用主机地址、用户名和密码作为参数,建立与主机的连接。使用new 生成新的FtpClient 类实例,使用login()方法登录FTP 服务器,调用showFileContents()方法显示文件内容。
Stop()方法使用FtpClient 对象的closeServer()方法关闭服务器连接。
Action()方法监听按钮,并对发生的按钮事件进行处理,通过使用判定语句evt.target == BtnConn来跟踪用户是否单击连接按钮,如果发生单击事件,则通过调用connect()方法来进行连接。如果evt.target == BtnClose 则调用stop()方法来断开连接。
SendFile()方法实现的是上载文件的功能。ShowFileContents()方法显示文件内容。在main()方法中生成此类实例,初始化线程,启动线程。-Summary: Java source code, network-related, FTP
Java prepared to achieve an FTP client program, through which clients connect to the specified server. useFtpApplet class inherits Applet class, init () is initialized in the realization of this Applet, set the layout and background, the establishment of the text, labels and text fields.
Connect () method uses the host address, user name and password as parameters to establish a connection with the host. FtpClient using the new generation of new class instance, use login () method FTP server, call showFileContents () method to display the contents of the file.
Stop () method uses FtpClient object closeServer () method to close the server connection.
Action () method listening button, and button events are processed through the use of judgment statement evt.target == BtnConn to track whether the user click the Connect button, if you click an event occurs, by calling the connect () method to connection. If evt.target == BtnClose calling
(系统自动生成,下载前可以参看下载内容)
下载文件列表
USEFTPAPPLET\FTP 客户端的实现\USEFTPAPPLET.HTML
............\................\USEFTPAPPLET.JAVA
............\测试网络速度\Project1.cfg
............\............\Project1.dof
............\............\Project1.dpr
............\............\Project1.res
............\............\Unit1.dcu
............\............\Unit1.dfm
............\............\Unit1.pas
............\FTP 客户端的实现
............\测试网络速度
USEFTPAPPLET