|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.pattern.util.AlmostAsIsEscapeUtil
public class AlmostAsIsEscapeUtil
This implementation is intended for use in FileNamePattern
.
Constructor Summary | |
---|---|
AlmostAsIsEscapeUtil()
|
Method Summary | |
---|---|
void |
escape(java.lang.String escapeChars,
java.lang.StringBuffer buf,
char next,
int pointer)
Do not perform any character escaping, except for '%'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlmostAsIsEscapeUtil()
Method Detail |
---|
public void escape(java.lang.String escapeChars, java.lang.StringBuffer buf, char next, int pointer)
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). Thus, the only character that needs escaping is '%'.
Note that this method assumes that it is called after the escape character has been consumed.
escape
in interface IEscapeUtil
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |