zed.ssh.client.ListSshClientOutputCollector Maven / Gradle / Ivy
The newest version!
package zed.ssh.client;
import com.google.common.collect.ImmutableList;
import java.util.LinkedList;
import java.util.List;
public class ListSshClientOutputCollector implements SshClientOutputCollector {
private final List lines = new LinkedList<>();
@Override
public void collect(String line) {
lines.add(line);
}
public List lines() {
return ImmutableList.copyOf(lines);
}
}