@@ -0,0 +1,746 @@
+package test.template.utils.demo;%0D%0A%0D%0Aimport java.io.FileInputStream;%0D%0Aimport java.io.InputStream;%0D%0A%0D%0Aimport test.template.utils.ClassPathResource;%0D%0Aimport test.template.utils.SftpUtils;%0D%0A%0D%0Apublic class SftpUtilsTest %7B%0D%0A%0D%0A%09public static void main(String%5B%5D args) throws Exception %7B%0D%0A%09%09InputStream is = new FileInputStream(%22pom.xml%22);%0D%0A%09%09SftpUtils.put(%22andy%22, %22andy%22, %22192.168.202.136%22, is, %22/home/andy/pom.xml%22);%0D%0A%09%09%0D%0A%09%09InputStream is2 = new ClassPathResource(%22config.properties%22).getInputStream();%0D%0A%09%09SftpUtils.put(%22andy%22, %22andy%22, %22192.168.202.136%22, is2, %22/home/andy/config.properties%22);%0D%0A%09%09%0D%0A%09%09byte%5B%5D data = SftpUtils.getBytes(%22andy%22, %22andy%22, %22192.168.202.136%22, %22/home/andy/config.properties%22);%0D%0A%09%09System.out.println(new String(data));%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Add SftpUtilsTest