Use try-with-resources for resource input stream.
Implement checkAccess and added existence checks to all methods.