import static com.lexicalscope.jewel.cli.CliFactory.parseArguments;
import java.io.File;
-import java.io.InputStreamReader;
-import java.io.OutputStreamWriter;
import java.util.Collection;
import java.util.HashSet;
import java.util.concurrent.CopyOnWriteArraySet;
Collection<Download> failedDownloads = new CopyOnWriteArraySet<>();
- CommandReader commandReader = new CommandReader(core, new InputStreamReader(System.in, "UTF-8"), new OutputStreamWriter(System.out, "UTF-8"), failedDownloads);
- commandReader.start();
- eventBus.register(commandReader);
-
NetworkAdapter networkAcceptor = new NetworkAdapter(eventBus, (reader, writer) -> new CommandReader(core, reader, writer, failedDownloads), configuration.getTelnetPort());
networkAcceptor.start();