private Louis() { INSTANCE = (LouisLibrary) Native.loadLibrary(("louis"), LouisLibrary.class); charSize = INSTANCE.lou_charSize(); switch (charSize) { case 2: encoding = "UTF-16LE"; break; case 4: encoding = "UTF-32LE"; break; default: throw new RuntimeException("unsuported char size configured in liblouis: " + charSize); } }