use of lucee.commons.io.res.util.ResourceOutputStream in project Lucee by lucee.
the class SMBResource method getOutputStream.
@Override
public OutputStream getOutputStream(boolean append) throws IOException {
ResourceUtil.checkGetOutputStreamOK(this);
try {
provider.lock(this);
SmbFile file = _file();
OutputStream os = new SmbFileOutputStream(file, append);
return IOUtil.toBufferedOutputStream(new ResourceOutputStream(this, os));
} catch (IOException e) {
provider.unlock(this);
// just in case it is an SmbException too... for cfcatch type="java.io.IOException"
throw new IOException(e);
}
}
Aggregations