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