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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
canLoad
protected boolean canLoad
canEject
protected boolean canEject
canMount
protected boolean canMount
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()