Java: Is there a way to know if an inputStream is a readonly file : <p>We encounter errors because we update a read only file. Currently I have a method that soft deletes a file. This method has a parameter DataHandler which has a field that contains an input stream. Would like to ask for some suggestions if there is a way to determine if dataHandler.getInputStream is a ready only. Writing the stream in a file on hard disk is not an option either</p>
