Package com.googlecode.jrcp

Examples of com.googlecode.jrcp.RemoteFile


      System.exit(1);
    }
    final String host = args[0];
    final String user = args[1];
    final String rFile = args[2];
    final RemoteFile remoteFile = new RemoteFile(host, user, rFile);
    if (args.length == 3) {
      // copy remote file to stdout
      remoteFile.copyTo(System.out);
    } else {
      // copy local file to remote file
      final File lFile = new File(args[3]);
      remoteFile.copyFrom(new FileInputStream(lFile), lFile.length());
    }
  }
View Full Code Here

TOP

Related Classes of com.googlecode.jrcp.RemoteFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.