Bug 123038 Change order of BIRT streams
Currenlty, birt streams have no order. For example, the version number is stored at the very end of the file! Need to exert some ordering.
core/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/FileArchiveWriter.java
public boolean exists( String relativePath ) 
	{
		String path = ArchiveUtil.generateFullPath( tempFolder, relativePath );
		File fd = new File(path);
		return fd.exists();
	}	
	/* (non-Javadoc)
	 * @see org.eclipse.birt.core.archive.IDocArchiveWriter#finish()
	 */
	public void finish() throws IOException
	{
			
		createFileFromFolder( ); 
		
		
		File tempArchiveFolder = new File( tempFolder );
		ArchiveUtil.DeleteAllFiles( tempArchiveFolder );		
	}
	/**
	 * Compound File Format: <br>
	 * 1long(stream section position) + 1long(entry number in lookup map) + lookup map section + stream data section <br>
	 * The Lookup map is a hash map. The key is the relative path of the stram. The entry contains two long number.
	 * The first long is the start postion. The second long is the length of the stream. <br>
	 * @param tempFolder
	 * @param fileName
	 * @return Whether the compound file was created successfully.
	 */
	private void createFileFromFolder( ) throws IOException
	{