com.tuneology.avm.drive
Class LoopbackDrive

java.lang.Object
  |
  +--com.tuneology.avm.drive.Drive
        |
        +--com.tuneology.avm.drive.LoopbackDrive

public class LoopbackDrive
extends Drive

This class represents a loopback device. A loopback device is really just a removable-media drive except that the media is a file and it is inserted and removed via software.

Version:
$Id: LoopbackDrive.java,v 1.8 2003/06/07 15:31:41 xnarf Exp $
Author:
Fran Taylor

Fields inherited from class com.tuneology.avm.drive.Drive
ent, refNum, TYPE_CDR, TYPE_CDROM, TYPE_CDRW, TYPE_DVD, TYPE_DVDR, TYPE_DVDRAM, TYPE_EJECTABLE, TYPE_FIXEDDISC, TYPE_FLOPPY, TYPE_LOADABLE, TYPE_LOOPBACK, TYPE_NETWORK, TYPE_OTHER, TYPE_REMOVABLE
 
Method Summary
 java.lang.String getImage()
          returns the pathname of the current image file, or null if there is none
 void setImage(java.lang.String imgPath)
          sets the path for the image file to be used.
static void setLosetupCmd(java.lang.String cmd)
           
 
Methods inherited from class com.tuneology.avm.drive.Drive
findDriveByDevice, findDriveByScsiId, findMountPointByDevice, getDefaultCDROM, getDevice, getDisktoolCmd, getDrive, getDriveList, getDriveType, getDriveType, getEntry, getHdiutilCmd, getManufacturer, getModel, getMountPoint, getMountPoints, getNameMax, getScsiId, getScsiId, getVersion, getVersions, isCDR, isCdrom, setDiscFreeCmd, setDisktoolCmd, setFstabPath, setHdiutilCmd, setMountCmd, setUmountCmd, touch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setImage

public void setImage(java.lang.String imgPath)
              throws java.lang.Exception
sets the path for the image file to be used. If null, dissosicates the current image file from the device.
Parameters:
imgPath -  
Throws:
java.lang.Exception -  

getImage

public java.lang.String getImage()
returns the pathname of the current image file, or null if there is none
Returns:
the image pathname.

setLosetupCmd

public static void setLosetupCmd(java.lang.String cmd)
                          throws java.io.IOException
Parameters:
cmd -