public synchronized void writeLine(String pMessage) { IllegalArgument.ifNull("Message", pMessage); if (isOpen) { zLines.addElement(pMessage); } notifyAll(); }
public PeerWriter(OutputStream pOs) { IllegalArgument.ifNull("Os", pOs); zWriter = new BufferedWriter(new OutputStreamWriter(pOs)); start(); }