def java_import(jvm_view, import_str):
 gateway_client = jvm_view._gateway_client
 command = ((((((proto.JVMVIEW_COMMAND_NAME + proto.JVM_IMPORT_SUB_COMMAND_NAME) + jvm_view._id) + u'\n') + escape_new_line(import_str)) + u'\n') + proto.END_COMMAND_PART)
 answer = gateway_client.send_command(command)
 return_value = get_return_value(answer, gateway_client, None, None)
 return return_value

def java_import ( jvm_view , import_str ) : gateway_client = jvm_view . _gateway_client command = ( ( ( ( ( ( proto . JVMVIEW_COMMAND_NAME + proto . JVM_IMPORT_SUB_COMMAND_NAME ) + jvm_view . _id ) + u'\n' ) + escape_new_line ( import_str ) ) + u'\n' ) + proto . END_COMMAND_PART ) answer = gateway_client . send_command ( command ) return_value = get_return_value ( answer , gateway_client , None , None ) return return_value
imports the package or class specified by import_str in the jvm view namespace .