public synchronized void close() throws IOException { if(closed) { throw new IOException("Input Stream Closed"); //$NON-NLS-1$ } closed = true; notifyAll(); console.streamClosed(this); } }
@Override public synchronized void close() throws IOException { if(closed) { throw new IOException("Input Stream Closed"); //$NON-NLS-1$ } closed = true; notifyAll(); console.streamClosed(this); } }
public synchronized void close() throws IOException { if(closed) { throw new IOException("Output Stream is closed"); //$NON-NLS-1$ } if (prependCR) { // force writing of last /r prependCR = false; notifyParitioner("\r"); //$NON-NLS-1$ } console.streamClosed(this); closed = true; partitioner = null; }
@Override public synchronized void close() throws IOException { if(closed) { throw new IOException("Output Stream is closed"); //$NON-NLS-1$ } if (prependCR) { // force writing of last /r prependCR = false; notifyParitioner("\r"); //$NON-NLS-1$ } console.streamClosed(this); closed = true; partitioner = null; }