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

com.fasterxml.aalto.util.IllegalCharHandler Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package com.fasterxml.aalto.util;

import com.fasterxml.aalto.WFCException;

public interface IllegalCharHandler {

	char convertIllegalChar(int invalidChar) throws WFCException;
	
	
	
	public static class ReplacingIllegalCharHandler implements IllegalCharHandler, XmlConsts {

		private final char replacedChar;
		
		public ReplacingIllegalCharHandler(final char replacedChar) {
			this.replacedChar = replacedChar;
		}
		
		
		@Override
		public char convertIllegalChar(int invalidChar) throws WFCException {
			return replacedChar;
		}
		
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy