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; } }
/** Close all the stream input/output that has been returned and close them. */ public boolean close() { return toClose.close(); }