org.gudy.azureus2.plugins.update
Interface UpdateInstaller

All Known Implementing Classes:
UpdateInstallerImpl

public interface UpdateInstaller


Method Summary
 void addChangeRightsAction(java.lang.String rights, java.lang.String to_file)
          Add an installation "change rights" action to change a file rights
 void addMoveAction(java.lang.String from_file_or_resource, java.lang.String to_file)
          Add an installation "move" action to move either an absolute file or resource
 void addRemoveAction(java.lang.String file)
          Adds an action to remove either a directory (recursively delete) or file
 void addResource(java.lang.String resource_name, java.io.InputStream is)
          Add a resource to the installation.
 void addResource(java.lang.String resource_name, java.io.InputStream is, boolean closeInputStream)
          Add a resource to the installation.
 void destroy()
           
 java.lang.String getInstallDir()
          Returns the absolute path of the Azureus install dir (i.e.
 java.lang.String getUserDir()
          Returns the absolute path of the user dir (i.e.
 void installNow(UpdateInstallerListener listener)
          Runs the action now, not as part of a shutdown/restart of Vuze
 

Method Detail

addResource

void addResource(java.lang.String resource_name,
                 java.io.InputStream is)
                 throws UpdateException
Add a resource to the installation. The file will be saved away for later use.

Parameters:
resource_name - non-qualified name for the resource - i.e. not an absolute file name but rather something local like "fred". This can then be used later in actions
is -
Throws:
UpdateException

addResource

void addResource(java.lang.String resource_name,
                 java.io.InputStream is,
                 boolean closeInputStream)
                 throws UpdateException
Add a resource to the installation. The file will be saved away for later use.

Parameters:
resource_name - non-qualified name for the resource - i.e. not an absolute file name but rather something local like "fred". This can then be used later in actions
is -
closeInputStream - if false, the InputStream is won't be closed
Throws:
UpdateException

getInstallDir

java.lang.String getInstallDir()
Returns the absolute path of the Azureus install dir (i.e. where Azureus2.jar etc is located)

Returns:

getUserDir

java.lang.String getUserDir()
Returns the absolute path of the user dir (i.e. where config is stored)

Returns:

addMoveAction

void addMoveAction(java.lang.String from_file_or_resource,
                   java.lang.String to_file)
                   throws UpdateException
Add an installation "move" action to move either an absolute file or resource

Parameters:
from_file - either absolute or relative
to_file - absolute
Throws:
UpdateException

addChangeRightsAction

void addChangeRightsAction(java.lang.String rights,
                           java.lang.String to_file)
                           throws UpdateException
Add an installation "change rights" action to change a file rights

Parameters:
rights - the rights, for example "776"
to_file - absolute
Throws:
UpdateException

addRemoveAction

void addRemoveAction(java.lang.String file)
                     throws UpdateException
Adds an action to remove either a directory (recursively delete) or file

Parameters:
file -
Throws:
UpdateException

installNow

void installNow(UpdateInstallerListener listener)
                throws UpdateException
Runs the action now, not as part of a shutdown/restart of Vuze

Throws:
UpdateException

destroy

void destroy()