Class AlmostAsIsEscapeUtil

  • All Implemented Interfaces:
    IEscapeUtil

    @Deprecated(since="2022-01-27")
    public class AlmostAsIsEscapeUtil
    extends RestrictedEscapeUtil
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    This implementation is intended for use in FileNamePattern.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void escape​(java.lang.String escapeChars, java.lang.StringBuffer buf, char next, int pointer)
      Deprecated.
      Do not perform any character escaping, except for '%', and ')'.
      • Methods inherited from class java.lang.Object

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

      • AlmostAsIsEscapeUtil

        public AlmostAsIsEscapeUtil()
        Deprecated.
    • Method Detail

      • escape

        public void escape​(java.lang.String escapeChars,
                           java.lang.StringBuffer buf,
                           char next,
                           int pointer)
        Deprecated.
        Do not perform any character escaping, except for '%', and ')'.

        Here is the rationale. First, filename patterns do not include escape combinations such as \r or \n. Moreover, characters which have special meaning in logback parsers, such as '{', or '}' cannot be part of file names (so me thinks). The left parenthesis character has special meaning only if it is preceded by %. Thus, the only characters that needs escaping are '%' and ')'.

        Note that this method assumes that it is called after the escape character has been consumed.

        Specified by:
        escape in interface IEscapeUtil
        Overrides:
        escape in class RestrictedEscapeUtil