Class Native2AsciiFilter

java.lang.Object
All Implemented Interfaces:
java.lang.Cloneable, ChainableReader, TokenFilter.Filter

public class Native2AsciiFilter
extends TokenFilter.ChainableReaderFilter
A filter that performs translations from characters to their Unicode-escape sequences and vice-versa.
Since:
Ant 1.9.8
  • Constructor Details

  • Method Details

    • setReverse

      public void setReverse​(boolean reverse)
      Flag the conversion to run in the reverse sense, that is Ascii to Native encoding.
      Parameters:
      reverse - True if the conversion is to be reversed, otherwise false;
    • filter

      public java.lang.String filter​(java.lang.String line)
      Description copied from interface: TokenFilter.Filter
      filter and/of modify a string
      Parameters:
      line - the string to filter
      Returns:
      the modified string or null if the string did not pass the filter