Package org.apache.maven.cli.jline
Class JLineMessageBuilderFactory
java.lang.Object
org.apache.maven.cli.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
- 
Field Summary
Fields inherited from interface org.codehaus.plexus.components.interactivity.InputHandler
ROLEFields inherited from interface org.codehaus.plexus.components.interactivity.OutputHandler
ROLEFields inherited from interface org.codehaus.plexus.components.interactivity.Prompter
ROLE - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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
- 
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
 
 - 
readLine
- Specified by:
 readLinein interfaceorg.codehaus.plexus.components.interactivity.InputHandler- Throws:
 IOException
 - 
readPassword
- Specified by:
 readPasswordin interfaceorg.codehaus.plexus.components.interactivity.InputHandler- Throws:
 IOException
 - 
readMultipleLines
- Specified by:
 readMultipleLinesin interfaceorg.codehaus.plexus.components.interactivity.InputHandler- Throws:
 IOException
 - 
write
- Specified by:
 writein interfaceorg.codehaus.plexus.components.interactivity.OutputHandler- Throws:
 IOException
 - 
writeLine
- Specified by:
 writeLinein interfaceorg.codehaus.plexus.components.interactivity.OutputHandler- Throws:
 IOException
 - 
prompt
public String prompt(String message) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
 promptin interfaceorg.codehaus.plexus.components.interactivity.Prompter- Throws:
 org.codehaus.plexus.components.interactivity.PrompterException
 - 
prompt
public String prompt(String message, String defaultReply) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
 promptin interfaceorg.codehaus.plexus.components.interactivity.Prompter- Throws:
 org.codehaus.plexus.components.interactivity.PrompterException
 - 
prompt
public String prompt(String message, List possibleValues) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
 promptin interfaceorg.codehaus.plexus.components.interactivity.Prompter- Throws:
 org.codehaus.plexus.components.interactivity.PrompterException
 - 
prompt
public String prompt(String message, List possibleValues, String defaultReply) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
 promptin interfaceorg.codehaus.plexus.components.interactivity.Prompter- Throws:
 org.codehaus.plexus.components.interactivity.PrompterException
 - 
promptForPassword
public String promptForPassword(String message) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
 promptForPasswordin interfaceorg.codehaus.plexus.components.interactivity.Prompter- Throws:
 org.codehaus.plexus.components.interactivity.PrompterException
 - 
showMessage
public void showMessage(String message) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
 showMessagein interfaceorg.codehaus.plexus.components.interactivity.Prompter- Throws:
 org.codehaus.plexus.components.interactivity.PrompterException
 
 -