|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.gudy.azureus2.ui.console.ConsoleInput
public class ConsoleInput
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
java.io.File[] |
adds
|
java.util.Properties |
aliases
|
AzureusCore |
azureus_core
|
java.io.PrintStream |
out
|
java.util.List |
torrents
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ConsoleInput(AzureusCore _azureus_core,
java.io.PrintStream _out)
Simple constructor to allow other components to use the console commands such as "set" |
|
ConsoleInput(java.lang.String con,
AzureusCore _azureus_core,
java.io.InputStream _in,
java.io.PrintStream _out,
java.lang.Boolean _controlling)
|
|
ConsoleInput(java.lang.String con,
AzureusCore _azureus_core,
java.io.Reader _in,
java.io.PrintStream _out,
java.lang.Boolean _controlling)
Creates a new instance of ConsoleInput |
|
ConsoleInput(java.lang.String con,
AzureusCore _azureus_core,
java.io.Reader _in,
java.io.PrintStream _out,
java.lang.Boolean _controlling,
UserProfile profile)
|
Method Summary | |
---|---|
void |
downloadRemoteTorrent(java.lang.String url)
downloads the remote torrent file. |
void |
downloadRemoteTorrent(java.lang.String url,
java.lang.String outputDir)
downloads the remote torrent file. |
void |
downloadTorrent(java.lang.String fileName)
downloads a torrent on the local file system to the default save directory |
void |
downloadTorrent(java.lang.String filename,
java.lang.String outputDir)
begins the download of the torrent in the specified file, downloading it to the specified output directory. |
AzureusCore |
getCore()
|
java.lang.String |
getDefaultSaveDirectory()
returns the default directory that torrents should be saved to unless otherwise specified |
GlobalManager |
getGlobalManager()
|
UserProfile |
getUserProfile()
|
protected void |
initialise()
|
boolean |
invokeCommand(java.lang.String command,
java.util.List cargs)
|
void |
printconsolehelp()
|
void |
printwelcome()
|
protected void |
registerAlertHandler()
|
protected void |
registerCommand(IConsoleCommand command)
|
protected void |
registerCommands()
registers the commands available to be executed from this console |
static void |
registerPluginCommand(java.lang.Class clazz)
can be used by plugins to register console commands since they may not have access to each ConsoleInput object that is created. |
protected void |
registerUpdateChecker()
|
void |
run()
|
void |
saveAliases()
writes the aliases back out to the alias file |
protected void |
unregisterCommand(IConsoleCommand command)
|
protected void |
unregisterCommand(java.lang.String commandName)
|
static void |
unregisterPluginCommand(java.lang.Class clazz)
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final AzureusCore azureus_core
public volatile java.io.PrintStream out
public final java.util.List torrents
public java.io.File[] adds
public final java.util.Properties aliases
Constructor Detail |
---|
public ConsoleInput(java.lang.String con, AzureusCore _azureus_core, java.io.Reader _in, java.io.PrintStream _out, java.lang.Boolean _controlling)
public ConsoleInput(java.lang.String con, AzureusCore _azureus_core, java.io.Reader _in, java.io.PrintStream _out, java.lang.Boolean _controlling, UserProfile profile)
public ConsoleInput(AzureusCore _azureus_core, java.io.PrintStream _out)
con
- _azureus_core
- _out
- public ConsoleInput(java.lang.String con, AzureusCore _azureus_core, java.io.InputStream _in, java.io.PrintStream _out, java.lang.Boolean _controlling)
Method Detail |
---|
public static void registerPluginCommand(java.lang.Class clazz)
public static void unregisterPluginCommand(java.lang.Class clazz)
protected void initialise()
public void downloadTorrent(java.lang.String filename, java.lang.String outputDir)
filename
- outputDir
- public void downloadRemoteTorrent(java.lang.String url, java.lang.String outputDir)
url
- outputDir
- public void downloadTorrent(java.lang.String fileName)
fileName
- public void downloadRemoteTorrent(java.lang.String url)
protected void registerAlertHandler()
protected void registerCommands()
protected void registerCommand(IConsoleCommand command)
set
- protected void unregisterCommand(IConsoleCommand command)
protected void unregisterCommand(java.lang.String commandName)
public void printwelcome()
public void printconsolehelp()
public boolean invokeCommand(java.lang.String command, java.util.List cargs)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void saveAliases()
public UserProfile getUserProfile()
public java.lang.String getDefaultSaveDirectory()
protected void registerUpdateChecker()
public AzureusCore getCore()
public GlobalManager getGlobalManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |