Package com.spun.util.io
Class NetUtils
java.lang.Object
com.spun.util.io.NetUtils
public class NetUtils extends Object
A static class of convenience functions for Files
-
Constructor Summary
Constructors Constructor Description NetUtils() -
Method Summary
Modifier and Type Method Description static voidftpUpload(FTPConfig config, String directory, File file)static voidftpUpload(FTPConfig config, String directory, File file, String remoteFileName)static StringloadWebPage(String url, String parameters)static StringreadWebpage(String query)static FilesftpDownload(FTPConfig config, File file, String remoteFileName)static voidsftpUpload(FTPConfig config, File file, String remoteFileName)
-
Constructor Details
-
NetUtils
public NetUtils()
-
-
Method Details
-
ftpUpload
public static void ftpUpload(FTPConfig config, String directory, File file, String remoteFileName) throws IOException- Throws:
IOException
-
ftpUpload
- Throws:
IOException
-
sftpUpload
public static void sftpUpload(FTPConfig config, File file, String remoteFileName) throws IOException- Throws:
IOException
-
sftpDownload
public static File sftpDownload(FTPConfig config, File file, String remoteFileName) throws IOException- Throws:
IOException
-
loadWebPage
-
readWebpage
-