/** * Delegates to release() */ @Override public void close() { release(); }
@Override public void writeTo(OutputStream outstream) throws IOException { super.writeTo(outstream); }
@Override public InputStream getInput() { try { return openStream(); } catch (IOException ioe) { throw Throwables.propagate(ioe); } }
/** * {@inheritDoc} */ @Override public void writeTo(OutputStream outstream) throws IOException { checkState(!written || isRepeatable(), "can only write to an outputStream once"); written = true; InputStream in = getInput(); try { copy(in, outstream); outstream.flush(); } finally { closeQuietly(in); } }
@Override public InputStream getInput() { try { return openStream(); } catch (IOException ioe) { throw Throwables.propagate(ioe); } }
/** * {@inheritDoc} */ @Override public void writeTo(OutputStream outstream) throws IOException { checkState(!written || isRepeatable(), "can only write to an outputStream once"); written = true; InputStream in = getInput(); try { copy(in, outstream); outstream.flush(); } finally { closeQuietly(in); } }
/** * Delegates to release() */ @Override public void close() { release(); }
@Override public InputStream getInput() { try { return openStream(); } catch (IOException ioe) { throw Throwables.propagate(ioe); } }
/** * {@inheritDoc} */ @Override public void writeTo(OutputStream outstream) throws IOException { checkState(!written || isRepeatable(), "can only write to an outputStream once"); written = true; InputStream in = getInput(); try { copy(in, outstream); outstream.flush(); } finally { closeQuietly(in); } }
@Override public void writeTo(OutputStream outstream) throws IOException { super.writeTo(outstream); }
/** * Delegates to release() */ @Override public void close() { release(); }
@Override public InputStream getInput() { try { return openStream(); } catch (IOException ioe) { throw Throwables.propagate(ioe); } }
/** * Delegates to release() */ @Override public void close() { release(); }
/** * Delegates to release() */ @Override public void close() { release(); }
/** * Delegates to release() */ @Override public void close() { release(); }