我有一个简单的放置并开始工作,但似乎找不到如何删除?作为参考,put 代码为:
BufferedInputStream inStream = null;
FileOutputStream outStream = null;
try {
final String ftpConnectInfo = "ftp://"+user+":"+pass+"@"+destHost+"/"+destFilename+";type=i";
LOGGER.info("Connection String: {}", ftpConnectInfo);
URL url = new URL(ftpConnectInfo);
URLConnection con = url.openConnection();
inStream = new BufferedInputStream(con.getInputStream());
outStream = new FileOutputStream(origFilename);
int i = 0;
byte[] bytesIn = new byte[1024];
while ((i = inStream.read(bytesIn)) >= 0) {
outStream.write(bytesIn, 0, i);
}
}
有什么方法可以修改 URL 以进行删除吗?