session.bindReader(reader);
return session;
}
public ReaderSession openRemoteFile(URI uri, String password, int nrOfLines) {
ReaderSession session = new ReaderSession();
SSHReader reader = new SSHReader(uri, password, nrOfLines);
session.bindReader(reader);
return session;
}