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