Interface GlobalConfiguration
public interface GlobalConfiguration
The configuration shared by all validators. Changes apply to existing or new validators.
 
Thread-safety: Implementations must be thread-safe.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the encoding supported by the terminal.Returns the current terminal encoding.terminalEncoding(TerminalEncoding encoding) Sets the terminal encoding of the output.
- 
Method Details- 
supportedTerminalEncodingsSet<TerminalEncoding> supportedTerminalEncodings()Returns the encoding supported by the terminal.- Returns:
- the encoding supported by the terminal
 
- 
terminalEncodingTerminalEncoding terminalEncoding()Returns the current terminal encoding.- Returns:
- the current terminal encoding (defaults to the auto-detected encoding)
 
- 
terminalEncodingSets the terminal encoding of the output.This can be used to force the use of ANSI colors when their support is not detected. - Parameters:
- encoding- the type of encoding that the terminal supports
- Returns:
- this
- Throws:
- NullPointerException- if- encodingis null
 
 
-