Exemplo n.º 1
0
 public ByteOutStream getByteOutStream() {
   try {
     return (DesktopByteOut) toClose.add(new DesktopByteOut(socket.getOutputStream()));
   } catch (IOException ex) {
     return null;
   }
 }
Exemplo n.º 2
0
 public StringInStream getStringInStream() {
   try {
     return (DesktopStringIn) toClose.add(new DesktopStringIn(socket.getInputStream()));
   } catch (IOException ex) {
     return null;
   }
 }
Exemplo n.º 3
0
 public StringOutStream getStringOutStream() {
   try {
     return (DesktopStringOut)
         toClose.add(new DesktopStringOut(new OutputStreamWriter(socket.getOutputStream())));
   } catch (IOException ex) {
     return null;
   }
 }
Exemplo n.º 4
0
 /** Close all the stream input/output that has been returned and close them. */
 public boolean close() {
   return toClose.close();
 }