Bug 82804 Jar creation should use less memory
I noticed that the JarWriter will read the entire file it plans to store into memory. An optimization would be to stream the file directly into the JarOutputStream. The only catch is with STORED items which need the CRC32 computed. A penalty could be taken in that case to compute the CRC in a loop and then stream the file.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/jarpackager/JarPackageData.java
*/
	public void setExportClassFiles(boolean state) {
		fExportClassFiles= state;
	}
	
	/**
	 * Tells whether all output folders for the
	 * enclosing projects of the exported elements.
	 * 
	 * @return	<code>true</code> if output folder are exported
	 * @since 3.0
	 */
	public boolean areOutputFoldersExported() {
		return fExportOutputFolders;
	}
	/**
	 * Sets option to export all output folders for the
	 * enclosing projects of the exported elements.
	 * 
	 * @param state a boolean indicating the new state
	 * @since 3.0
	 */
	public void setExportOutputFolders(boolean state) {
		fExportOutputFolders= state;
	}
	/**
	 * Tells whether files created by the Java builder are exported.
	 * 
	 * @return	<code>true</code> if output folder are exported
	 * @since 3.0