com.fasterxml.aalto.util.IllegalCharHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aalto-xml Show documentation
Show all versions of aalto-xml Show documentation
Ultra-high performance non-blocking XML processor (Stax/Stax2, SAX/SAX2)
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;
}
}
}