Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

34 righe
769 B

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