org.apache.logging.log4j.core.util
Class Patterns

java.lang.Object
  extended by org.apache.logging.log4j.core.util.Patterns

public final class Patterns
extends Object

Pattern strings used throughout Log4j.

See Also:
Pattern

Field Summary
static String COMMA_SEPARATOR
          A pattern string for comma separated lists with optional whitespace.
static String WHITESPACE
          The whitespace pattern string.
 
Method Summary
static String toWhitespaceSeparator(String separator)
          Creates a pattern string for separator surrounded by whitespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMA_SEPARATOR

public static final String COMMA_SEPARATOR
A pattern string for comma separated lists with optional whitespace.


WHITESPACE

public static final String WHITESPACE
The whitespace pattern string.

See Also:
Constant Field Values
Method Detail

toWhitespaceSeparator

public static String toWhitespaceSeparator(String separator)
Creates a pattern string for separator surrounded by whitespace.

Parameters:
separator - The separator.
Returns:
a pattern for separator surrounded by whitespace.


Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.