/** * Get an OutputStream for the Resource. * @return an OutputStream to which content can be written. * @throws IOException if unable to provide the content of this * Resource as a stream. * @throws UnsupportedOperationException if OutputStreams are not * supported for this Resource type. */ @Override public OutputStream getOutputStream() throws IOException { if (isReference()) { return getCheckedRef().getOutputStream(); } return getOutputStream(false); }
/** * {@inheritDoc} */ @Override public OutputStream getAppendOutputStream() throws IOException { if (isReference()) { return getCheckedRef().getAppendOutputStream(); } return getOutputStream(true); }