All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.liblouis.WideChar Maven / Gradle / Ivy

Go to download

JNA based Java bindings to liblouis, an open-source braille translator and back-translator.

There is a newer version: 5.1.0
Show newest version
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();
			}
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy