@Override // This method is synchronized to protect against premature calling of finalize by the GC protected synchronized void finalize() throws Throwable { if (isClosed()) return; try { close(); } catch (Exception ignored) { } }
@Override public void close() { if (isClosed()) return; try { isClosed = true; releaseConnection(); } catch (Exception e) { throw new ProcessingException(e); } }
protected InputStream getEntityStream() { if (bufferedEntity != null) return new ByteArrayInputStream(bufferedEntity); if (isClosed()) throw new ProcessingException(Messages.MESSAGES.streamIsClosed()); InputStream is = getInputStream(); return is != null ? new InputStreamWrapper(is, this) : null; }
@Override // This method is synchronized to protect against premature calling of finalize by the GC protected synchronized void finalize() throws Throwable { if (isClosed()) return; try { close(); } catch (Exception ignored) { } }
@Override // This method is synchronized to protect against premature calling of finalize by the GC protected synchronized void finalize() throws Throwable { if (isClosed()) return; try { close(); } catch (Exception ignored) { } }
@Override public void close() { if (isClosed()) return; try { isClosed = true; releaseConnection(); } catch (Exception e) { throw new ProcessingException(e); } }
@Override public void close() { if (isClosed()) return; try { isClosed = true; releaseConnection(); } catch (Exception e) { throw new ProcessingException(e); } }
protected InputStream getEntityStream() { if (bufferedEntity != null) return new ByteArrayInputStream(bufferedEntity); if (isClosed()) throw new ProcessingException(Messages.MESSAGES.streamIsClosed()); InputStream is = getInputStream(); return is != null ? new InputStreamWrapper(is, this) : null; }
protected InputStream getEntityStream() { if (bufferedEntity != null) return new ByteArrayInputStream(bufferedEntity); if (isClosed()) throw new ProcessingException(Messages.MESSAGES.streamIsClosed()); InputStream is = getInputStream(); return is != null ? new InputStreamWrapper(is, this) : null; }