All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy