Code example for ZipEntry

Methods: getSize

0
	public void read(ZipInputStream in) throws IOException {
		FileOutputStream out = null;
		try { 
			createNewFile();
			out = new FileOutputStream(this);
			byte[] buffer = new byte[(int) entry.getSize()];
			in.read(buffer);
			out.write(buffer);
		} finally { 
			if(out != null) {
				try { 
					out.close();
				} catch(IOException ex) {
					//ok 
				} 
			} 
		} 
	} 
	 
}