try { is = new ByteArrayInputStream( streamToOpen .getBytes( UnicodeUtil.SIGNATURE_UTF_8 ) ); } catch ( UnsupportedEncodingException e ) { assert false; }
Action action = StructureFactory.createAction( ); image.setProperty( ImageHandle.ACTION_PROP, action ); return ( (ImageHandle) image.getHandle( handler.getModule( ) ) ) .getActionHandle( ); }
	public static ActionHandle deserializeAction( String strData )			throws DesignFileException	{		InputStream is = null;		String streamToOpen = StringUtil.trimString( strData );		if ( streamToOpen != null )		{			try			{				is = new ByteArrayInputStream( streamToOpen						.getBytes( UnicodeUtil.SIGNATURE_UTF_8 ) );			}			catch ( UnsupportedEncodingException e )			{				assert false;			}		}		return deserializeAction( is );	}