Package org.apache.maven.jline
Class JLineMessageBuilderFactory
java.lang.Object
org.apache.maven.jline.JLineMessageBuilderFactory
- All Implemented Interfaces:
- Service,- MessageBuilderFactory,- org.codehaus.plexus.components.interactivity.InputHandler,- org.codehaus.plexus.components.interactivity.OutputHandler,- org.codehaus.plexus.components.interactivity.Prompter
@Experimental
@Named
@Singleton
@Priority(10)
public class JLineMessageBuilderFactory
extends Object
implements MessageBuilderFactory, org.codehaus.plexus.components.interactivity.Prompter, org.codehaus.plexus.components.interactivity.InputHandler, org.codehaus.plexus.components.interactivity.OutputHandler
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Creates a new message builder.builder(int size) Creates a new message builder of the specified size.intReturns the terminal width or-1if not supported.booleanChecks if the underlying output does support styling or not.promptForPassword(String message) readLine()voidshowMessage(String message) voidvoid
- 
Constructor Details- 
JLineMessageBuilderFactorypublic JLineMessageBuilderFactory()
 
- 
- 
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 of the specified size.- Specified by:
- builderin interface- MessageBuilderFactory
- Parameters:
- size- the initial size of the message builder buffer
- Returns:
- a new message builder
 
- 
readLine- Specified by:
- readLinein interface- org.codehaus.plexus.components.interactivity.InputHandler
- Throws:
- IOException
 
- 
readPassword- Specified by:
- readPasswordin interface- org.codehaus.plexus.components.interactivity.InputHandler
- Throws:
- IOException
 
- 
readMultipleLines- Specified by:
- readMultipleLinesin interface- org.codehaus.plexus.components.interactivity.InputHandler
- Throws:
- IOException
 
- 
write- Specified by:
- writein interface- org.codehaus.plexus.components.interactivity.OutputHandler
- Throws:
- IOException
 
- 
writeLine- Specified by:
- writeLinein interface- org.codehaus.plexus.components.interactivity.OutputHandler
- Throws:
- IOException
 
- 
promptpublic String prompt(String message) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
- promptin interface- org.codehaus.plexus.components.interactivity.Prompter
- Throws:
- org.codehaus.plexus.components.interactivity.PrompterException
 
- 
promptpublic String prompt(String message, String defaultReply) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
- promptin interface- org.codehaus.plexus.components.interactivity.Prompter
- Throws:
- org.codehaus.plexus.components.interactivity.PrompterException
 
- 
promptpublic String prompt(String message, List possibleValues) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
- promptin interface- org.codehaus.plexus.components.interactivity.Prompter
- Throws:
- org.codehaus.plexus.components.interactivity.PrompterException
 
- 
promptpublic String prompt(String message, List possibleValues, String defaultReply) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
- promptin interface- org.codehaus.plexus.components.interactivity.Prompter
- Throws:
- org.codehaus.plexus.components.interactivity.PrompterException
 
- 
promptForPasswordpublic String promptForPassword(String message) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
- promptForPasswordin interface- org.codehaus.plexus.components.interactivity.Prompter
- Throws:
- org.codehaus.plexus.components.interactivity.PrompterException
 
- 
showMessagepublic void showMessage(String message) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
- showMessagein interface- org.codehaus.plexus.components.interactivity.Prompter
- Throws:
- org.codehaus.plexus.components.interactivity.PrompterException
 
 
-