Published in: Java
import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.zip.InflaterInputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; public class ZipInputStreamTest { /** * @param args * @throws IOException */ { FileInputStream file = new FileInputStream( "I:\\Mitarbeiter\\Mai\\Software\\anleitung_xmw_grdsa.zip" ); ZipEntry current_zip_entry = null; while( ( current_zip_entry = zip_inputstream.getNextEntry() ) != null ) { int data = 0; while( ( data = zip_inputstream.read() ) != - 1 ) { outputfile.write( data ); } outputfile.close(); } zip_inputstream.close(); file.close(); } }
You need to login to post a comment.
