@Override public void write(int b) throws IOException { write(new byte[]{(byte) b}, 0, 1); }
final ArrayList<String> arguments = new ArrayList<>(Arrays.asList(serverCommand.payloadString().split("\n"))); errorJSONStream.writingInterrupted(false); errorJSONStream.setOriginal(socket.getOutputStream()); outJSONStream.writingInterrupted(false); outJSONStream.setOriginal(socket.getOutputStream()); errorJSONStream.writingInterrupted(true); outJSONStream.writingInterrupted(true); while (errorJSONStream.isWriting() || outJSONStream.isWriting()) { outJSONStream.flush(); errorJSONStream.flush(); for (ImageBuildTask task : tasks) { threadPoolExecutor.submit(task::interruptBuild);