Package org.apache.maven.message
Interface MessageBuilderFactory
-
- All Known Implementing Classes:
DefaultMessageBuilderFactory
public interface MessageBuilderFactoryA factory forMessageBuilder.- Since:
- 3.10.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessageBuilderbuilder()Creates a new message builder.MessageBuilderbuilder(int size)Creates a new message builder of the specified size.intgetTerminalWidth()Returns the terminal width or-1if not supported.booleanisColorEnabled()Checks if the underlying output does support styling or not.
-
-
-
Method Detail
-
isColorEnabled
boolean isColorEnabled()
Checks if the underlying output does support styling or not.- Returns:
- whether color styling is supported or not
-
getTerminalWidth
int getTerminalWidth()
Returns the terminal width or-1if not supported.- Returns:
- the terminal width
-
builder
MessageBuilder builder()
Creates a new message builder.- Returns:
- a new message builder
-
builder
MessageBuilder builder(int size)
Creates a new message builder of the specified size.- Parameters:
size- the initial size of the message builder buffer- Returns:
- a new message builder
-
-