Command command = eligibleCommands.iterator().next();
List<String> parameters = from(asList(words)).skip(1).toList();
state = command.execute(state, parameters, writer);
+ writer.flush();
}
lastLine = line;
downloadIndex++;
}
outputWriter.write("End of failed downloads.\n");
- outputWriter.flush();
return state.setLastFailedDownloads(new ArrayList<>(failedDownloads));
}
outputWriter.write(String.format("[%d] %s:%d, %s/s\n", counter++, connection.hostname(), connection.port(), f(connection.getInputRate())));
}
outputWriter.write("End of connections.\n");
- outputWriter.flush();
return state.setLastConnections(lastConnections);
}
outputWriter.write(")\n");
}
outputWriter.write("End of DCCs.\n");
- outputWriter.flush();
return state.setLastDownloads(downloads);
}
outputWriter.write(String.format("[%d] %s (%s) from %s (#%s) on %s\n", counter++, result.pack().name(), result.pack().size(), result.bot().name(), result.pack().id(), result.bot().network().name()));
}
outputWriter.write("End of Search.\n");
- outputWriter.flush();
return state.setLastResults(lastResult);
}