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

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

Go to download

Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.

There is a newer version: 1.8.0
Show newest version
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