| java.lang.Object au.id.jericho.lib.html.Config
Config | final public class Config (Code) | | Encapsulates global configuration properties which determine the behaviour of various functions.
All of the properties in this class are static, affecting all objects and threads.
Multiple concurrent configurations are not possible.
Properties that relate to user agent
compatibility issues are stored in instances of the
Config.CompatibilityMode class.
This allows all of the properties in the compatibility mode to be set as a block by setting the static
Config.CurrentCompatibilityMode property to a different instance.
See Also: Config.CompatibilityMode |
Inner Class :static class UnterminatedCharacterReferenceSettings | |
Inner Class :final public static class CompatibilityMode | |
ColumnMultipleValueSeparator | public static String ColumnMultipleValueSeparator(Code) | | Determines the string used to separate a single column's multiple values in the output of the
FormFields.getColumnValues(Map) method.
The situation where a single column has multiple values only arises if
FormField.getUserValueCount >1
on the relevant form field, which usually indicates a poorly designed form.
The default value is ", " (a comma, not including the quotes).
Must not be null .
|
ColumnValueFalse | public static String ColumnValueFalse(Code) | | Determines the string that represents the value false in the output of the
FormFields.getColumnValues(Map) method.
The default value is null , which represents no output at all.
|
ColumnValueTrue | public static String ColumnValueTrue(Code) | | Determines the string that represents the value true in the output of the
FormFields.getColumnValues(Map) method.
The default value is "true " (without the quotes).
Must not be null .
|
CurrentCompatibilityMode | public static CompatibilityMode CurrentCompatibilityMode(Code) | | Determines the currently active
.
The default setting is
Config.CompatibilityMode.IE (MS Internet Explorer 6.0).
Must not be null .
|
IncludeServerTagsInElementHierarchy | final static boolean IncludeServerTagsInElementHierarchy(Code) | | Used in Element.getChildElements.
Will only make this public if someone makes a convincing argument why you would ever need to include server tags in an element hierarchy.
|
IsApostropheEncoded | public static boolean IsApostropheEncoded(Code) | | Determines whether apostrophes are encoded when calling the
CharacterReference.encode(CharSequence) method.
A value of false means
(U+0027) characters are not encoded.
The only time apostrophes need to be encoded is within an attribute value delimited by
single quotes (apostrophes), so in most cases ignoring apostrophes is perfectly safe and
enhances the readability of the source document.
Note that apostrophes are always encoded as a
, never as the
character entity reference
CharacterEntityReference._apos ' .
The default value is false .
|
LoggerProvider | public static LoggerProvider LoggerProvider(Code) | | Determines the
LoggerProvider that is used to create the default
Logger object for each new
Source object.
The
LoggerProvider interface contains several predefined LoggerProvider instances which this property can be set to,
mostly representing wrappers to common logging frameworks.
The default value is null , which results in the auto-detection of the most appropriate logging mechanism according to the following algorithm:
- If the class
org.slf4j.impl.StaticLoggerBinder is detected:
- If the class
org.apache.commons.logging.Log is detected:
Create an instance of it using the commons-logging LogFactory class.
- If the class
org.apache.log4j.Logger is detected, use
LoggerProvider.LOG4J .
- otherwise, use
LoggerProvider.JAVA .
See Also: Source.setLogger(Logger) |
NewLine | public static String NewLine(Code) | | Determines the string used to represent a newline in text output throughout the library.
The default value is the standard new line character sequence of the host platform, determined by System.getProperty("line.separator") .
|
|
|