session.save();
open = false;
} catch (RepositoryException e) {
- throw new JcrFsException("Cannot close " + file, e);
+ throw new IOException("Cannot close " + file, e);
} finally {
JcrUtils.closeQuietly(newBinary);
// IOUtils.closeQuietly(fc);
position = position + read;
return read;
} catch (RepositoryException e) {
- throw new JcrFsException("Cannot read into buffer", e);
+ throw new IOException("Cannot read into buffer", e);
}
}
}
try {
return binary.getSize();
} catch (RepositoryException e) {
- throw new JcrFsException("Cannot get size", e);
+ throw new IOException("Cannot get size", e);
}
}
}
}
return fc;
} catch (RepositoryException e) {
- throw new JcrFsException("Cannot get temp file channel", e);
+ throw new IOException("Cannot get temp file channel", e);
}
}