public void createNewConsoleInput(String consoleName, InputStream inputStream, PrintStream outputStream, UserProfile profile)
{
ConsoleInput console;
if( userManager != null )
{
MultiUserConsoleInput muc = new MultiUserConsoleInput(consoleName, UIConst.getAzureusCore(), new InputStreamReader(inputStream), outputStream, Boolean.FALSE, profile);
muc.registerCommand( new UserCommand(userManager) );
console = muc;
}
else
{
console = new ConsoleInput(consoleName, UIConst.getAzureusCore(), new InputStreamReader(inputStream), outputStream, Boolean.FALSE, profile);
System.out.println( "TelnetUI: console input instantiated" );
}
console.printwelcome();
console.printconsolehelp();