Java Doc for FtpClient.java in  » 6.0-JDK-Modules » j2me » sun » net » ftp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » sun.net.ftp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


sun.net.TransferProtocolClient
   sun.net.ftp.FtpClient

FtpClient
public class FtpClient extends TransferProtocolClient (Code)
This class implements the FTP client.
version:
   1.49, 08/19/02
author:
   Jonathan Payne


Field Summary
static  intFTP_ERROR
    
final public static  intFTP_PORT
    
static  intFTP_SUCCESS
    
static  intFTP_TRY_AGAIN
    
 Stringcommand
    
public static  StringftpProxyHost
    
public static  intftpProxyPort
    
 intlastReplyCode
     The last reply code from the ftp daemon.
 Stringpassword
    
public static  booleanuseFtpProxy
    
 Stringuser
    
public  StringwelcomeMsg
     Welcome message from the server, if any.

Constructor Summary
public  FtpClient(String host)
     New FTP client connected to host host.
public  FtpClient(String host, int port)
     New FTP client connected to host host, port port.
public  FtpClient()
     Create an uninitialized FTP client.

Method Summary
public  voidascii()
    
public  voidbinary()
    
public  voidcd(String remoteDirectory)
    
public  voidcloseServer()
     issue the QUIT command to the FTP server and close the connection.
public  TelnetInputStreamget(String filename)
    
public static  StringgetFtpProxyHost()
    
public static  intgetFtpProxyPort()
     the proxy port to use.
public static  booleangetUseFtpProxy()
    
protected  intissueCommand(String cmd)
    
protected  voidissueCommandCheck(String cmd)
    
public  TelnetInputStreamlist()
    
public  voidlogin(String user, String password)
    
protected  SocketopenDataConnection(String cmd)
    
public  voidopenServer(String host)
     open a FTP connection to host host.
public  voidopenServer(String host, int port)
     open a FTP connection to host host on port port.
public  TelnetOutputStreamput(String filename)
    
protected  intreadReply()
    

Field Detail
FTP_ERROR
static int FTP_ERROR(Code)



FTP_PORT
final public static int FTP_PORT(Code)



FTP_SUCCESS
static int FTP_SUCCESS(Code)



FTP_TRY_AGAIN
static int FTP_TRY_AGAIN(Code)



command
String command(Code)
last command issued



ftpProxyHost
public static String ftpProxyHost(Code)



ftpProxyPort
public static int ftpProxyPort(Code)



lastReplyCode
int lastReplyCode(Code)
The last reply code from the ftp daemon.



password
String password(Code)
password for login



useFtpProxy
public static boolean useFtpProxy(Code)



user
String user(Code)
user name for login



welcomeMsg
public String welcomeMsg(Code)
Welcome message from the server, if any.




Constructor Detail
FtpClient
public FtpClient(String host) throws IOException(Code)
New FTP client connected to host host.



FtpClient
public FtpClient(String host, int port) throws IOException(Code)
New FTP client connected to host host, port port.



FtpClient
public FtpClient()(Code)
Create an uninitialized FTP client.




Method Detail
ascii
public void ascii() throws IOException(Code)
Set transfer type to 'A'



binary
public void binary() throws IOException(Code)
Set transfer type to 'I'



cd
public void cd(String remoteDirectory) throws IOException(Code)
CD to a specific directory on a remote FTP server



closeServer
public void closeServer() throws IOException(Code)
issue the QUIT command to the FTP server and close the connection.



get
public TelnetInputStream get(String filename) throws IOException(Code)
GET a file from the FTP server



getFtpProxyHost
public static String getFtpProxyHost()(Code)
the host to use, or null if none has been specified



getFtpProxyPort
public static int getFtpProxyPort()(Code)
the proxy port to use. Will default reasonably if not set.



getUseFtpProxy
public static boolean getUseFtpProxy()(Code)
if the networking layer should send ftp connections througha proxy



issueCommand
protected int issueCommand(String cmd) throws IOException(Code)



issueCommandCheck
protected void issueCommandCheck(String cmd) throws IOException(Code)



list
public TelnetInputStream list() throws IOException(Code)
LIST files on a remote FTP server



login
public void login(String user, String password) throws IOException(Code)
login user to a host with username user and password password



openDataConnection
protected Socket openDataConnection(String cmd) throws IOException(Code)



openServer
public void openServer(String host) throws IOException(Code)
open a FTP connection to host host.



openServer
public void openServer(String host, int port) throws IOException(Code)
open a FTP connection to host host on port port.



put
public TelnetOutputStream put(String filename) throws IOException(Code)
PUT a file to the FTP server



readReply
protected int readReply() throws IOException(Code)



Fields inherited from sun.net.TransferProtocolClient
protected int lastReplyCode(Code)(Java Doc)
protected Vector serverResponse(Code)(Java Doc)

Methods inherited from sun.net.TransferProtocolClient
public String getResponseString()(Code)(Java Doc)
public Vector getResponseStrings()(Code)(Java Doc)
public int readServerResponse() throws IOException(Code)(Java Doc)
public void sendServer(String cmd)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.