command « ftp « Java Network Q&A

Home
Java Network Q&A
1.API
2.bluetooth
3.Client
4.connection
5.Cookie
6.Development
7.Email
8.File
9.ftp
10.http
11.HttpClient
12.https
13.ip
14.Network
15.OS
16.RMI
17.Security
18.Server
19.Socket
20.tcp
21.UDP
22.url
Java Network Q&A » ftp » command 

1. FTP using exec(String command) of Runtime    coderanch.com

Yes, if you're reading the stdout stream. Here's a runtime exec exercise I did. It's not 100% bug free: http://www.surfscranton.com/architecture/CmdServer.htm The server portion has the runtime exec stuff. Have you looked around for FTP APIs for Java? I've seen some open source or free packages mentioned but never tried any. That would give you the best possible control over FTP. This ...

2. execute ftp commands using java API    coderanch.com

URL url = new URL("ftp://admin:administrator@10.20.30.9"); URLConnection urlc = url.openConnection(); InputStreamReader isr = new InputStreamReader(urlc.getInputStream()); Process process = Runtime.getRuntime().exec(urlc + "cd SABB_APP dir"); BufferedReader input = new BufferedReader(isr); String s; while ((s = input.readLine()) != null) { System.out.println(s); }input.close(); I have done this thing for connection,but i want to execute mput and mget commands from java..I thought to use Runtime.getRuntime.exec() but was ...

3. how to execute ftp commands from java    coderanch.com

URL url = new URL("ftp://admin:administrator@10.20.30.9"); URLConnection urlc = url.openConnection(); InputStreamReader isr = new InputStreamReader(urlc.getInputStream()); Process process = Runtime.getRuntime().exec(urlc + "cd SABB_APP dir"); BufferedReader input = new BufferedReader(isr); String s; while ((s = input.readLine()) != null) { System.out.println(s); }input.close(); I have done this thing for connection,but i want to execute mput and mget commands from java..I thought to use Runtime.getRuntime.exec() but was ...

4. implementing FTP SIZE command    forums.oracle.com

I am trying to implement the SIZE command in FTP. The RFC says that the return value of the SIZE command will depend on the current STRUCTURE , MODE and TYPE of data connection. However, it doenot say how . I have not been able to find anything on the net either. Does anyone have a working implementation of the SIZE ...

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