lhmc.utils
Class RemovableDevicesActivator

java.lang.Object
  extended by lhmc.utils.RemovableDevicesActivator

public class RemovableDevicesActivator
extends java.lang.Object

RemovableDevicesActivator mounts the removable devices connected to the system. The mount is done automaticaly accecing to the devices by automount.

Version:
0.01 Jul 2007
Author:
Cristina Roura Claver

Constructor Summary
RemovableDevicesActivator(java.net.URL root)
          Constructs RemovableDevicesActivator
 
Method Summary
 void activatingUSBDevices()
          Activates the removable devices accecing to the files.
 java.net.URL getDevicesRoot()
          Gets the devices root directory.
 java.net.URL[] getRemovableDevices()
          Gets the devices directories URL array.
 void setDevicesRoot(java.net.URL root)
          Sets the devices root directory.
 void setRemovableDevices(java.net.URL[] devicesList)
          Sets the devices directories URL array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemovableDevicesActivator

public RemovableDevicesActivator(java.net.URL root)
Constructs RemovableDevicesActivator

Parameters:
root - the root directory where the devices are mounted.
Method Detail

setDevicesRoot

public void setDevicesRoot(java.net.URL root)
Sets the devices root directory.

Parameters:
root - the root directory where the devices are mounted.

getDevicesRoot

public java.net.URL getDevicesRoot()
Gets the devices root directory.

Returns:
the root directory where the devices are mounted.

setRemovableDevices

public void setRemovableDevices(java.net.URL[] devicesList)
Sets the devices directories URL array.

Parameters:
devicesList - the devices directory URL array where each device is mounted.

getRemovableDevices

public java.net.URL[] getRemovableDevices()
Gets the devices directories URL array.

Returns:
the devices directory URL array where each device is mounted.

activatingUSBDevices

public void activatingUSBDevices()
Activates the removable devices accecing to the files.