Bug 189813 After modify a wrong preview report, when preview in Web viewer it can not process the document file[1102]
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ReportDocumentWriter.java
private void writeMap( DataOutputStream stream, HashMap map ) throws Exception
	{
		IOUtil.writeLong( stream, map.size( ) );
		Iterator iter = map.entrySet( ).iterator( );
		while ( iter.hasNext( ) )
		{
			Map.Entry entry = (Map.Entry) iter.next( );
			String key = (String) entry.getKey( );
			Long value = (Long) entry.getValue( );
			IOUtil.writeString( stream, key );
			IOUtil.writeLong( stream, value.longValue( ) );
		}
	}
	
	public void setPageCount( long pageCount )
	{
		this.pageCount = pageCount;
	}
	public void saveReprotletsBookmarkIndex( Map bookmarkToOffset)
	{
		this.bookmarkToOffset = new HashMap();
		this.bookmarkToOffset.putAll( bookmarkToOffset );
	}
	public void saveReportletsIdIndex( Map idToOffset )
	{
		this.idToOffset = new HashMap();
		this.idToOffset.putAll( idToOffset );
	}
}