Debian Codegraph @

java/org/zoy/caca/Caca.java

raw
1 /**
2 * libcaca Java bindings for libcaca
3 * Copyright (c) 2009 Adrien Grand <[email protected]>
4 *
5 * This library is free software. It comes without any warranty, to
6 * the extent permitted by applicable law. You can redistribute it
7 * and/or modify it under the terms of the Do What the Fuck You Want
8 * to Public License, Version 2, as published by Sam Hocevar. See
9 * http://www.wtfpl.net/ for more details.
10 */
11
12 package org.zoy.caca;
13
14 public class Caca {
15
16 static {
17 load();
18 }
19
20 private static boolean alreadyLoaded = false;
21
22 synchronized public static void load() {
23 if (!alreadyLoaded) {
24 System.loadLibrary("caca-java");
25 alreadyLoaded = true;
26 }
27 }
28
29 public static native String getVersion();
30
31 }