Class JLineMessageBuilderFactory
java.lang.Object
org.apache.maven.jline.JLineMessageBuilderFactory
- All Implemented Interfaces:
Service,MessageBuilderFactory
@Experimental
@Named
@Singleton
@Priority(10)
public class JLineMessageBuilderFactory
extends Object
implements MessageBuilderFactory
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JLineMessageBuilderFactory
public JLineMessageBuilderFactory()
-
-
Method Details
-
isColorEnabled
public boolean isColorEnabled()Description copied from interface:MessageBuilderFactoryChecks if the underlying output does support styling or not.- Specified by:
isColorEnabledin interfaceMessageBuilderFactory- Returns:
- whether color styling is supported or not
-
getTerminalWidth
public int getTerminalWidth()Description copied from interface:MessageBuilderFactoryReturns the terminal width or-1if not supported.- Specified by:
getTerminalWidthin interfaceMessageBuilderFactory- Returns:
- the terminal width
-
builder
Description copied from interface:MessageBuilderFactoryCreates a new message builder.- Specified by:
builderin interfaceMessageBuilderFactory- Returns:
- a new message builder
-
builder
Description copied from interface:MessageBuilderFactoryCreates a new message builder of the specified size.- Specified by:
builderin interfaceMessageBuilderFactory- Parameters:
size- the initial size of the message builder buffer- Returns:
- a new message builder
-