Class DefaultEntityFilter

java.lang.Object
org.omegat.util.xml.DefaultEntityFilter

@Deprecated(forRemoval=true, since="5.8") public class DefaultEntityFilter extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Entity filter for XML.

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

  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Converts plaintext symbol to XML entity.
    int
    convertToSymbol(String escapeSequence)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Converts XML entity to plaintext character.

    Methods inherited from class java.lang.Object

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

    • DefaultEntityFilter

      public DefaultEntityFilter()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • convertToEntity

      public String convertToEntity(int cp)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Converts plaintext symbol to XML entity.
    • convertToSymbol

      public int convertToSymbol(String escapeSequence)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Converts XML entity to plaintext character. If the entity cannot be converted, returns 0.