source: trunk/lang/java/Utils.java @ 4503

Last change on this file since 4503 was 3177, checked in by mmc, 12 years ago

Updated all of the copyright notices to reference the transfer to
the new HUBzero Foundation, LLC.

File size: 935 bytes
Line 
1/*
2 * ======================================================================
3 *  AUTHOR:  Ben Rafferty, Purdue University
4 *  Copyright (c) 2004-2012  HUBzero Foundation, LLC
5 *
6 *  See the file "license.terms" for information on usage and
7 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
8 * ======================================================================
9 */
10
11/*
12 * This file defines a java class that implemements the rappture utils module.
13 * The class methods call the corresponding native code through c++ glue code
14 * located in jRpUtils.cc.
15 */
16
17package rappture;
18
19public class Utils{
20  static{
21    System.loadLibrary("JRappture");
22  }
23
24  public static void progress(int percent, String text){
25    jRpUtilsProgress(percent, text);
26  }
27
28  public static void progress(int percent){
29    jRpUtilsProgress(percent, "");
30  }
31
32  private static native void jRpUtilsProgress(int percent, String text);
33
34}
35
Note: See TracBrowser for help on using the repository browser.