Class DefaultEntityFilter


  • public class DefaultEntityFilter
    extends java.lang.Object
    Entity filter for XML.

    Does XML Entity -> Symbol conversion on source file read and Symbol -> XML Entity conversion on translation write.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String convertToEntity​(int cp)
      Converts plaintext symbol to XML entity.
      int convertToSymbol​(java.lang.String escapeSequence)
      Converts XML entity to plaintext character.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultEntityFilter

        public DefaultEntityFilter()
    • Method Detail

      • convertToEntity

        public java.lang.String convertToEntity​(int cp)
        Converts plaintext symbol to XML entity.
      • convertToSymbol

        public int convertToSymbol​(java.lang.String escapeSequence)
        Converts XML entity to plaintext character. If the entity cannot be converted, returns 0.