public ByteOutStream getByteOutStream() {
   try {
     return (DesktopByteOut) toClose.add(new DesktopByteOut(socket.getOutputStream()));
   } catch (IOException ex) {
     return null;
   }
 }
 public StringInStream getStringInStream() {
   try {
     return (DesktopStringIn) toClose.add(new DesktopStringIn(socket.getInputStream()));
   } catch (IOException ex) {
     return null;
   }
 }
 public StringOutStream getStringOutStream() {
   try {
     return (DesktopStringOut)
         toClose.add(new DesktopStringOut(new OutputStreamWriter(socket.getOutputStream())));
   } catch (IOException ex) {
     return null;
   }
 }