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

panda.lang.escape.NumericEntityUnescaper Maven / Gradle / Ivy

package panda.lang.escape;

import java.io.IOException;
import java.util.EnumSet;

import panda.lang.Arrays;

/**
 * Translate XML numeric entities of the form &#[xX]?\d+;? to 
 * the specific codepoint.
 *
 * Note that the semi-colon is optional.
 * 
 */
public class NumericEntityUnescaper extends CharSequenceTranslator {

	public static enum OPTION {
		semiColonRequired, semiColonOptional, errorIfNoSemiColon
	}

	// TODO?: Create an OptionsSet class to hide some of the conditional logic below
	private final EnumSet




© 2015 - 2024 Weber Informatics LLC | Privacy Policy