/** * {@inheritDoc} */ @Override public synchronized void close() throws CloseException { super.close(); try { _objectOutputStream.close(); } catch ( IOException aException ) { if ( !ExceptionUtility.isThrownAsOfAlreadyClosed( aException ) ) throw new CloseException( "Unable to close stream <" + _objectOutputStream + ">.", aException ); } }
/** * {@inheritDoc} */ @Override public synchronized void close() throws CloseException { super.close(); try { _objectOutputStream.close(); } catch ( IOException aException ) { if ( !ExceptionUtility.isThrownAsOfAlreadyClosed( aException ) ) throw new CloseException( "Unable to close stream <" + _objectOutputStream + ">.", aException ); } }
/** * {@inheritDoc} */ @Override public synchronized void close() throws CloseException { super.close(); try { _objectOutputStream.close(); } catch ( IOException aException ) { if ( !ExceptionUtility.isThrownAsOfAlreadyClosed( aException ) ) throw new CloseException( "Unable to close stream <" + _objectOutputStream + ">.", aException ); } }
/** * {@inheritDoc} */ @Override public synchronized void close() throws CloseException { super.close(); try { _objectOutputStream.close(); } catch ( IOException aException ) { if ( !ExceptionUtility.isThrownAsOfAlreadyClosed( aException ) ) throw new CloseException( "Unable to close stream <" + _objectOutputStream + ">.", aException ); } }
/** * {@inheritDoc} */ @Override public synchronized void close() throws CloseException { if ( !isClosed() ) { super.close(); try { _inputStream.close(); } catch ( IOException e ) { if ( !ExceptionUtility.isThrownAsOfAlreadyClosed( e ) ) throw new CloseException( "Unable to close receiver, connection status is <" + getConnectionStatus() + ">.", e ); } } }
/** * {@inheritDoc} */ @Override public synchronized void close() throws CloseException { if ( !isClosed() ) { super.close(); try { _inputStream.close(); } catch ( IOException e ) { if ( !ExceptionUtility.isThrownAsOfAlreadyClosed( e ) ) throw new CloseException( "Unable to close receiver, connection status is <" + getConnectionStatus() + ">.", e ); } } }
if ( ExceptionUtility.isThrownAsOfAlreadyClosed( ioe ) ) { super.close();
if ( ExceptionUtility.isThrownAsOfAlreadyClosed( ioe ) ) { super.close();
if ( !ExceptionUtility.isThrownAsOfAlreadyClosed( aException ) ) throw new OpenException( "Unable to open the I/O stream receiver as of a causing exception.", aException );
if ( !ExceptionUtility.isThrownAsOfAlreadyClosed( aException ) ) throw new OpenException( "Unable to open the I/O stream receiver as of a causing exception.", aException );