Class LocalizedStringLoadingOptions

java.lang.Object
com.lokalized.LocalizedStringLoadingOptions

Options applied while discovering and loading localized strings files.

The byte limit applies to Path and InputStream inputs. The UTF-16 code-unit limit applies to Reader inputs, whose original byte representation is not available to Lokalized. The localized strings file-count, translation-node, and warning limits apply to every load, including single-resource parse(...) operations. The discovery-entry limit separately bounds resources, filesystem children, JAR entries, and classpath roots examined before candidate resources are parsed; it does not apply to explicit single-resource parsing or explicit locale-to-resource maps, which enumerate no candidates. The aggregate byte limit also applies to path and input-stream parsing; it cannot apply to a Reader because the original byte representation is unavailable. The translation-node limit bounds parsed model structure; the byte and character limits separately bound the localized strings file text containing that structure.

Exhaustive classpath searching is disabled by default because it inspects every filesystem and JAR root visible to a classloader. Enable it only when localized strings are packaged in a JAR that omits directory entries and ordinary ClassLoader.getResources(String) discovery therefore cannot find the requested package.

Since:
3.0.0
Author:
Mark Allen