medi.io
Class VolumeScanner

java.lang.Object
  |
  +--medi.io.VolumeScanner

public class VolumeScanner
extends java.lang.Object

It is a class used to scan a volume and punt information in a file.


Constructor Summary
VolumeScanner()
          Creates new VolumeScanner
VolumeScanner(java.lang.String scanFileName, java.lang.String pVolumeName, DirectoryScanner pMountPoint)
          Creates new VolumeScanner
VolumeScanner(java.lang.String scanFileName, java.lang.String pVolumeName, java.io.File pMountPoint)
          Creates new VolumeScanner
 
Method Summary
 void scan()
          Scans the volume.
 void setMountPoint(DirectoryScanner pMountPoint)
          Sets the mount point.
 void setMountPoint(java.io.File pMountPoint)
          Sets the mount point.
 void setScanFilename(java.lang.String scanFileName)
          Sets the file name to use to store information.
 void setStatusFrame(Volume2DbStatus pStatus)
          Sets the status frame to be used to show information about the process.
 void setVolumeName(java.lang.String pVolumeName)
          Sets the volume name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VolumeScanner

public VolumeScanner()
Creates new VolumeScanner


VolumeScanner

public VolumeScanner(java.lang.String scanFileName,
                     java.lang.String pVolumeName,
                     java.io.File pMountPoint)
Creates new VolumeScanner

Parameters:
scanFileName - The file name to be used to store information.
pVolumeName - The volume name to be used.
pMountPoint - The mount point to start from.

VolumeScanner

public VolumeScanner(java.lang.String scanFileName,
                     java.lang.String pVolumeName,
                     DirectoryScanner pMountPoint)
Creates new VolumeScanner

Parameters:
scanFileName - The file name to be used.
pVolumeName - The volume name to be stored.
pMountPoint - The mount point (as a directory-scanner).
Method Detail

setScanFilename

public void setScanFilename(java.lang.String scanFileName)
Sets the file name to use to store information.

Parameters:
scanFileName - The file name to be used to store information.

setVolumeName

public void setVolumeName(java.lang.String pVolumeName)
Sets the volume name.

Parameters:
pVolumeName - The volume name.

setMountPoint

public void setMountPoint(java.io.File pMountPoint)
Sets the mount point.

Parameters:
pMountPoint - The mount point (as a File).

setMountPoint

public void setMountPoint(DirectoryScanner pMountPoint)
Sets the mount point.

Parameters:
pMountPoint - The mount point (as a directory-scanner).

setStatusFrame

public void setStatusFrame(Volume2DbStatus pStatus)
Sets the status frame to be used to show information about the process.

Parameters:
pStatus - The status frame to be used.

scan

public void scan()
Scans the volume.