@Override public void close() throws IOException { rais.close(); }
@Override public void close() throws IOException { rais.close(); } }
/** * Closes the ISO file's {@link RandomAccessInputStream} that was passed to the constructor. * * @throws IOException if an I/O error occurs while closing the stream */ @Override public void close() throws IOException { rais.close(); } }
@Override public void close() throws IOException { rais.close(); }
/** * Closes the current RandomAccessInputStream to the zip file. * * @throws IOException if an error occurred */ private void closeRead() throws IOException { if(rais!=null) { try { rais.close(); } finally { rais = null; } } }
/** * Opens the zip file for random read access. * * @throws IOException if an error occured while opening the zip file for random read access. * @throws UnsupportedFileOperationException if a required operation is not supported by the underlying filesystem. */ private void openRead() throws IOException, UnsupportedFileOperationException { if(rais!=null) { LOGGER.info("Warning: an existing RandomAccessInputStream was found, closing it now"); rais.close(); } rais = file.getRandomAccessInputStream(); }