Package org.apache.maven.cli.jansi
Class JansiMessageBuilderFactory
java.lang.Object
org.apache.maven.cli.jansi.JansiMessageBuilderFactory
- All Implemented Interfaces:
- Service,- MessageBuilderFactory
@Experimental
@Named
@Singleton
public class JansiMessageBuilderFactory
extends Object
implements MessageBuilderFactory
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Creates a new message builder.builder(StringBuilder stringBuilder) Creates a new message builder backed by the given string builder.intReturns the terminal width or-1if not supported.booleanChecks if the underlying output does support styling or not.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.services.MessageBuilderFactorybuilder
- 
Constructor Details- 
JansiMessageBuilderFactorypublic JansiMessageBuilderFactory()
 
- 
- 
Method Details- 
isColorEnabledpublic boolean isColorEnabled()Description copied from interface:MessageBuilderFactoryChecks if the underlying output does support styling or not.- Specified by:
- isColorEnabledin interface- MessageBuilderFactory
- Returns:
- whether color styling is supported or not
 
- 
getTerminalWidthpublic int getTerminalWidth()Description copied from interface:MessageBuilderFactoryReturns the terminal width or-1if not supported.- Specified by:
- getTerminalWidthin interface- MessageBuilderFactory
- Returns:
- the terminal width
 
- 
builderDescription copied from interface:MessageBuilderFactoryCreates a new message builder.- Specified by:
- builderin interface- MessageBuilderFactory
- Returns:
- a new message builder
 
- 
builderDescription copied from interface:MessageBuilderFactoryCreates a new message builder backed by the given string builder.- Specified by:
- builderin interface- MessageBuilderFactory
- Parameters:
- stringBuilder- a string builder
- Returns:
- a new message builder
 
 
-