+ Thread.currentThread().getName()); try { rec.getRecordedInput().close(); } catch (IOException e) { logger.log(Level.SEVERE, "second-chance RIS close failed", e);
public void open(InputStream wrappedStream) throws IOException { logger.fine(Thread.currentThread().getName() + " opening " + wrappedStream + ", " + Thread.currentThread().getName()); if(isOpen()) { // error; should not be opening/wrapping in an unclosed // stream remains open throw new IOException("RIS already open for " +Thread.currentThread().getName()); } try { this.in = wrappedStream; this.recordingOutputStream.open(); } catch (IOException ioe) { close(); // ...and rethrow... throw ioe; } }
public void open(InputStream wrappedStream) throws IOException { if (logger.isLoggable(Level.FINE)) { logger.fine("wrapping " + wrappedStream + " in thread " + Thread.currentThread().getName()); } if(isOpen()) { // error; should not be opening/wrapping in an unclosed // stream remains open throw new IOException("RIS already open for " +Thread.currentThread().getName()); } try { this.in = wrappedStream; this.recordingOutputStream.open(); } catch (IOException ioe) { close(); // ...and rethrow... throw ioe; } }
public void open(InputStream wrappedStream) throws IOException { if (logger.isLoggable(Level.FINE)) { logger.fine("wrapping " + wrappedStream + " in thread " + Thread.currentThread().getName()); } if(isOpen()) { // error; should not be opening/wrapping in an unclosed // stream remains open throw new IOException("RIS already open for " +Thread.currentThread().getName()); } try { this.in = wrappedStream; this.recordingOutputStream.open(); } catch (IOException ioe) { close(); // ...and rethrow... throw ioe; } }
/** * Close all streams. */ public void close() { logger.fine(Thread.currentThread().getName() + " closing"); try { this.ris.close(); } catch (IOException e) { // TODO: Can we not let the exception out of here and report it // higher up in the caller? DevUtils.logger.log(Level.SEVERE, "close() ris" + DevUtils.extraInfo(), e); } try { this.ros.close(); } catch (IOException e) { DevUtils.logger.log(Level.SEVERE, "close() ros" + DevUtils.extraInfo(), e); } }
/** * Close all streams. */ public void close() { logger.fine(Thread.currentThread().getName() + " closing"); try { this.ris.close(); } catch (IOException e) { // TODO: Can we not let the exception out of here and report it // higher up in the caller? DevUtils.logger.log(Level.SEVERE, "close() ris" + DevUtils.extraInfo(), e); } try { this.ros.close(); } catch (IOException e) { DevUtils.logger.log(Level.SEVERE, "close() ros" + DevUtils.extraInfo(), e); } }
/** * Close all streams. */ public void close() { logger.fine(Thread.currentThread().getName() + " closing"); try { this.ris.close(); } catch (IOException e) { // TODO: Can we not let the exception out of here and report it // higher up in the caller? DevUtils.logger.log(Level.SEVERE, "close() ris" + DevUtils.extraInfo(), e); } try { this.ros.close(); } catch (IOException e) { DevUtils.logger.log(Level.SEVERE, "close() ros" + DevUtils.extraInfo(), e); } }
+ Thread.currentThread().getName()); try { rec.getRecordedInput().close(); } catch (IOException e) { logger.log(Level.SEVERE, "second-chance RIS close failed", e);