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