Interface EscapeStrategy


  • public interface EscapeStrategy
    Logic to determine which characters should be formatted as character entities.
    Author:
    Alex Rosen, Bradley S. Huffman, Jason Hunter
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean shouldEscape​(char ch)
      Test whether the supplied character should be formatted literally or as a character entity.
    • Method Detail

      • shouldEscape

        boolean shouldEscape​(char ch)
        Test whether the supplied character should be formatted literally or as a character entity.
        Parameters:
        ch - The char to test to determine whether it should be escaped.
        Returns:
        true if ch should be escaped.