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());
}
}