yongsing
asked on
API Documentation for FTPClient
Does anyone know where (URL) I can get the API documentation on the undocumented FTPClient and related classes?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Heres a dump of the undoc API:
//------------------------ ---------- ---------- ---------- ---
package sun.net.ftp;
// Imports
import java.lang.Object;
import java.lang.String;
import sun.net.TelnetOutputStream ;
import sun.net.TelnetInputStream;
import java.net.Socket;
import java.security.PrivilegedAc tion;
import sun.net.TransferProtocolCl ient;
import java.io.IOException;
public class FtpClient extends TransferProtocolClient {
// Fields
public static final int FTP_PORT = 21;
static int FTP_SUCCESS;
static int FTP_TRY_AGAIN;
static int FTP_ERROR;
private Socket dataSocket;
private boolean replyPending;
private boolean binaryMode;
String user;
String password;
String command;
int lastReplyCode;
public String welcomeMsg;
public static boolean useFtpProxy;
public static String ftpProxyHost;
public static int ftpProxyPort;
// Constructors
public FtpClient(String p0) throws IOException { }
public FtpClient(String p0, int p1) throws IOException { }
public FtpClient() { }
// Methods
public static boolean getUseFtpProxy() { }
public static String getFtpProxyHost() { }
public static int getFtpProxyPort() { }
public void closeServer() throws IOException { }
protected int issueCommand(String p0) throws IOException { }
protected void issueCommandCheck(String p0) throws IOException { }
protected int readReply() throws IOException { }
protected Socket openDataConnection(String p0) throws IOException { }
public void openServer(String p0) throws IOException { }
public void openServer(String p0, int p1) throws IOException { }
public void login(String p0, String p1) throws IOException { }
public TelnetInputStream get(String p0) throws IOException { }
public TelnetOutputStream put(String p0) throws IOException { }
public TelnetInputStream list() throws IOException { }
public void cd(String p0) throws IOException { }
public void binary() throws IOException { }
public void ascii() throws IOException { }
static { }
// Inner classes
class FtpClient$1 implements PrivilegedAction {
// Constructors
FtpClient$1() { }
// Methods
public Object run() { }
}
class FtpClient$2 implements PrivilegedAction {
// Fields
private final int[] val$result;
// Constructors
FtpClient$2(int[] p0) { }
// Methods
public Object run() { }
}
}
//------------------------ ---------- ---------- ---------- ----
package sun.net;
// Imports
import java.lang.String;
import java.util.Vector;
import sun.net.NetworkClient;
import java.io.IOException;
public class TransferProtocolClient extends NetworkClient {
// Fields
static final boolean debug = 0;
protected Vector serverResponse;
protected int lastReplyCode;
// Constructors
public TransferProtocolClient(Str ing p0, int p1) throws IOException { }
public TransferProtocolClient() { }
// Methods
public int readServerResponse() throws IOException { }
public void sendServer(String p0) { }
public String getResponseString() { }
public Vector getResponseStrings() { }
}
//------------------------ ---------- ---------- ---------- ----
package sun.net;
// Imports
import java.io.InputStream;
import java.io.FilterInputStream;
import java.io.IOException;
public class TelnetInputStream extends FilterInputStream {
// Fields
boolean stickyCRLF;
boolean seenCR;
public boolean binaryMode;
// Constructors
public TelnetInputStream(InputStr eam p0, boolean p1) { }
// Methods
public void setStickyCRLF(boolean p0) { }
public int read() throws IOException { }
public int read(byte[] p0) throws IOException { }
public int read(byte[] p0, int p1, int p2) throws IOException { }
}
//------------------------ ---------- ---------- ---------- ---
package sun.net;
// Imports
import java.io.BufferedOutputStre am;
import java.io.IOException;
import java.io.OutputStream;
public class TelnetOutputStream extends BufferedOutputStream {
// Fields
boolean stickyCRLF;
boolean seenCR;
public boolean binaryMode;
// Constructors
public TelnetOutputStream(OutputS tream p0, boolean p1) { }
// Methods
public void write(int p0) throws IOException { }
public void write(byte[] p0, int p1, int p2) throws IOException { }
}
//------------------------ ---------- ---------- ---------- ----
Hope that helps
gadio
//------------------------
package sun.net.ftp;
// Imports
import java.lang.Object;
import java.lang.String;
import sun.net.TelnetOutputStream
import sun.net.TelnetInputStream;
import java.net.Socket;
import java.security.PrivilegedAc
import sun.net.TransferProtocolCl
import java.io.IOException;
public class FtpClient extends TransferProtocolClient {
// Fields
public static final int FTP_PORT = 21;
static int FTP_SUCCESS;
static int FTP_TRY_AGAIN;
static int FTP_ERROR;
private Socket dataSocket;
private boolean replyPending;
private boolean binaryMode;
String user;
String password;
String command;
int lastReplyCode;
public String welcomeMsg;
public static boolean useFtpProxy;
public static String ftpProxyHost;
public static int ftpProxyPort;
// Constructors
public FtpClient(String p0) throws IOException { }
public FtpClient(String p0, int p1) throws IOException { }
public FtpClient() { }
// Methods
public static boolean getUseFtpProxy() { }
public static String getFtpProxyHost() { }
public static int getFtpProxyPort() { }
public void closeServer() throws IOException { }
protected int issueCommand(String p0) throws IOException { }
protected void issueCommandCheck(String p0) throws IOException { }
protected int readReply() throws IOException { }
protected Socket openDataConnection(String p0) throws IOException { }
public void openServer(String p0) throws IOException { }
public void openServer(String p0, int p1) throws IOException { }
public void login(String p0, String p1) throws IOException { }
public TelnetInputStream get(String p0) throws IOException { }
public TelnetOutputStream put(String p0) throws IOException { }
public TelnetInputStream list() throws IOException { }
public void cd(String p0) throws IOException { }
public void binary() throws IOException { }
public void ascii() throws IOException { }
static { }
// Inner classes
class FtpClient$1 implements PrivilegedAction {
// Constructors
FtpClient$1() { }
// Methods
public Object run() { }
}
class FtpClient$2 implements PrivilegedAction {
// Fields
private final int[] val$result;
// Constructors
FtpClient$2(int[] p0) { }
// Methods
public Object run() { }
}
}
//------------------------
package sun.net;
// Imports
import java.lang.String;
import java.util.Vector;
import sun.net.NetworkClient;
import java.io.IOException;
public class TransferProtocolClient extends NetworkClient {
// Fields
static final boolean debug = 0;
protected Vector serverResponse;
protected int lastReplyCode;
// Constructors
public TransferProtocolClient(Str
public TransferProtocolClient() { }
// Methods
public int readServerResponse() throws IOException { }
public void sendServer(String p0) { }
public String getResponseString() { }
public Vector getResponseStrings() { }
}
//------------------------
package sun.net;
// Imports
import java.io.InputStream;
import java.io.FilterInputStream;
import java.io.IOException;
public class TelnetInputStream extends FilterInputStream {
// Fields
boolean stickyCRLF;
boolean seenCR;
public boolean binaryMode;
// Constructors
public TelnetInputStream(InputStr
// Methods
public void setStickyCRLF(boolean p0) { }
public int read() throws IOException { }
public int read(byte[] p0) throws IOException { }
public int read(byte[] p0, int p1, int p2) throws IOException { }
}
//------------------------
package sun.net;
// Imports
import java.io.BufferedOutputStre
import java.io.IOException;
import java.io.OutputStream;
public class TelnetOutputStream extends BufferedOutputStream {
// Fields
boolean stickyCRLF;
boolean seenCR;
public boolean binaryMode;
// Constructors
public TelnetOutputStream(OutputS
// Methods
public void write(int p0) throws IOException { }
public void write(byte[] p0, int p1, int p2) throws IOException { }
}
//------------------------
Hope that helps
gadio
U may have answered your own question :)
Why not use a documented one?