Class EscapeGroup

java.lang.Object
com.itextpdf.styledxmlparser.css.util.EscapeGroup

public class EscapeGroup extends Object
Class to store escape characters and their processing logic. This class is used in CssUtils.splitString(String, char, EscapeGroup...) method.
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • openCharacter

      private final char openCharacter
    • closeCharacter

      private final char closeCharacter
    • counter

      private int counter
  • Constructor Details

    • EscapeGroup

      public EscapeGroup(char openCharacter, char closeCharacter)
      Creates instance of EscapeGroup.
      Parameters:
      openCharacter - opening escape character
      closeCharacter - closing escape character
    • EscapeGroup

      public EscapeGroup(char escapeChar)
      Creates instance of EscapeGroup when opening and closing characters are the same.
      Parameters:
      escapeChar - opening and closing escape character
  • Method Details

    • isEscaped

      boolean isEscaped()
      Is currently processed character in CssUtils.splitString(String, char, EscapeGroup...) escaped.
      Returns:
      true if escaped, false otherwise
    • processCharacter

      void processCharacter(char nextCharacter)
      Processes given character.
      Parameters:
      nextCharacter - next character to process