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

org.liblouis.TranslationResult 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.ptr.IntByReference;

public class TranslationResult {
	
	private String braille = null;
	private byte[] hyphenPositions = null;
	
	public TranslationResult(
			WideString outbuf,
			IntByReference outlen,
			byte[] outputHyphens) {
		
		this.braille = outbuf.read(outlen.getValue());
		if (outputHyphens != null) {
			this.hyphenPositions = new byte[outlen.getValue()-1];
			for (int i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy