private void initializeZip ( ) throws IOException { s_logger . info ( "Using chemical component dictionary: " + m_zipFile . toString ( ) ) ; final File f = m_zipFile . toFile ( ) ; if ( ! f . exists ( ) ) { s_logger . info ( "Creating missing zip archive: " + m_zipFile . toString ( ) ) ; FileOutputStream fo = new FileOutputStream ( f ) ; ZipOutputStream zip = new ZipOutputStream ( new BufferedOutputStream ( fo ) ) ; try { zip . putNextEntry ( new ZipEntry ( "chemcomp/" ) ) ; zip . closeEntry ( ) ; } finally { zip . close ( ) ; } } }
ZipFileSystems - due to URI issues in Java7 .