com.tuneology.avm.drive
Class DriveEntry

java.lang.Object
  |
  +--com.tuneology.avm.drive.DriveEntry

public class DriveEntry
extends java.lang.Object

A lightweight representation of a drive device on the system.

Version:
$Id: DriveEntry.java,v 1.6 2003/06/10 08:39:07 xnarf Exp $
Author:
Fran Taylor

Field Summary
protected  boolean canEject
           
protected  boolean canLoad
           
protected  boolean canMount
           
 
Method Summary
 void eject()
          Ejects the media from the drive.
 boolean equals(DriveEntry ent)
           
 MountPoint getAudioTracks()
           
 MountPoint getDataTrack()
           
 java.lang.String getDescription()
           
 java.lang.String getDevice()
           
 java.lang.String getDirectory()
           
 int getDriveType()
           
 java.lang.String getManufacturer()
           
 java.lang.String getModel()
           
 MountPoint[] getMountPoints()
           
 java.lang.String getScsiId()
           
 java.lang.String getVersion()
           
 boolean isEjectable()
          Returns true if the drive can be ejected from software.
 boolean isLoadable()
          Returns true if the drive can be loaded from software.
static boolean isLoadable(java.lang.String dev)
          Returns true if the drive can be loaded from software.
 boolean isLoaded()
          Returns true if the drive is loaded.
 boolean isMountable()
           
 void load()
          Loads the media into the drive.
static void touch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canLoad

protected boolean canLoad

canEject

protected boolean canEject

canMount

protected boolean canMount
Method Detail

getDataTrack

public MountPoint getDataTrack()

getDevice

public java.lang.String getDevice()

getScsiId

public java.lang.String getScsiId()

getMountPoints

public MountPoint[] getMountPoints()

getDirectory

public java.lang.String getDirectory()

getDriveType

public int getDriveType()

getDescription

public java.lang.String getDescription()

equals

public boolean equals(DriveEntry ent)

touch

public static void touch()

getAudioTracks

public MountPoint getAudioTracks()

eject

public void eject()
           throws java.lang.Exception
Ejects the media from the drive.
Throws:
java.lang.Exception -  

isLoaded

public boolean isLoaded()
                 throws java.io.IOException
Returns true if the drive is loaded.
Returns:
true if the drive is loaded.
Throws:
java.io.IOException -  

load

public void load()
          throws java.lang.Exception
Loads the media into the drive. Not supported on all drives, for example, slot-loading drives, and older drives using a caddy. Use isLoadable() to see if the drive supports loading.
Throws:
java.lang.Exception -  

isLoadable

public boolean isLoadable()
Returns true if the drive can be loaded from software.
Returns:
true if the drive can be loaded from software.

isEjectable

public boolean isEjectable()
Returns true if the drive can be ejected from software.
Returns:
true if the drive can be ejected from software.

isMountable

public boolean isMountable()

isLoadable

public static boolean isLoadable(java.lang.String dev)
Returns true if the drive can be loaded from software.
Parameters:
dev - the name of the device.
Returns:
true if the drive can be loaded from software.

getManufacturer

public java.lang.String getManufacturer()

getModel

public java.lang.String getModel()

getVersion

public java.lang.String getVersion()