IOUtil.writeString( out, image.getImageName( ) );
{ String imageName = image.getImageName( ); DesignElementHandle handle = image.getHandle( ); if ( handle instanceof ImageHandle ) { String designImageName = image.getImageName( ); if ( imageName != null && imageName.equals( designImageName ) ) { imageName = null; } } IOUtil.writeString( out, imageName ); }
	protected void writeImage( DataOutputStream out, ImageItemDesign image )			throws IOException	{		writeReportItem( out, image );		IOUtil.writeShort( out, FIELD_IMAGE_SOURCE );		int imageSource = image.getImageSource( );		IOUtil.writeInt( out, imageSource );		switch ( imageSource )		{			case ImageItemDesign.IMAGE_NAME :				IOUtil.writeString( out, image.getImageName( ) );				break;			case ImageItemDesign.IMAGE_FILE :				IOUtil.writeString( out, image.getImageUri( ) );				break;			case ImageItemDesign.IMAGE_URI :				IOUtil.writeString( out, image.getImageUri( ) );				break;			case ImageItemDesign.IMAGE_EXPRESSION :				IOUtil.writeString( out, image.getImageExpression( ) );				IOUtil.writeString( out, image.getImageFormat( ) );				break;		}		String altText = image.getAltText( );		String altTextKey = image.getAltTextKey( );		String helpText = image.getHelpText( );		String helpTextKey = image.getHelpTextKey( );		if ( altText != null || altTextKey != null )		{			IOUtil.writeShort( out, FIELD_ALT_TEXT );			IOUtil.writeString( out, altTextKey );			IOUtil.writeString( out, altText );		}		if ( helpText != null || helpText != null )		{			IOUtil.writeShort( out, FIELD_HELP_TEXT );			IOUtil.writeString( out, helpTextKey );			IOUtil.writeString( out, helpText );		}	}