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.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ReportDocumentWriter.java
.getName( ) );
	private IDocArchiveWriter archive;
	private DataOutputStream coreStream;
	private String designName;
	private HashMap paramters;
	private HashMap globalVariables;
	public ReportDocumentWriter( IDocArchiveWriter archive )
	{
		this.archive = archive;
		try
		{
			archive.initialize( );
			RAOutputStream out = archive.createRandomAccessStream( CORE_STREAM );
			coreStream = new DataOutputStream( new BufferedOutputStream( out ) );
			writeVersion( );
		}
		catch ( IOException e )
		{
			logger.log( Level.SEVERE, "Failed in initializing the archive", e );
		}
	}
	protected void writeVersion( ) throws IOException
	{
		IOUtil.writeString( coreStream, REPORT_DOCUMENT_TAG );
		IOUtil.writeString( coreStream, REPORT_DOCUMENT_VERSION_1_0_0 );
	}
	public IDocArchiveWriter getArchive( )
	{
		return this.archive;
	}