org.liblouis.WideChar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liblouis-java Show documentation
Show all versions of liblouis-java Show documentation
JNA based Java bindings to liblouis, an open-source braille translator and back-translator.
package org.liblouis;
import com.sun.jna.NativeMapped;
public interface WideChar extends NativeMapped {
public static abstract class Constants {
public static final int CHARSIZE;
public static final String ENCODING;
static {
CHARSIZE = Louis.getLibrary().lou_charSize();
switch (CHARSIZE) {
case 2:
ENCODING = "UTF-16LE";
break;
case 4:
ENCODING = "UTF-32LE";
break;
default:
throw new RuntimeException();
}
}
}
}