com.tuneology.avm.drive
Class MountPoint
java.lang.Object
|
+--com.tuneology.avm.drive.MountPoint
- public class MountPoint
- extends java.lang.Object
This class represents one of several mounted volumes
associated with a drive.
- Version:
- $Id: MountPoint.java,v 1.3 2003/06/19 17:55:54 xnarf Exp $
- Author:
- Fran Taylor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getDriveEntry
public DriveEntry getDriveEntry()
getDevice
public java.lang.String getDevice()
getPath
public java.lang.String getPath()
getSession
public int getSession()
mount
public boolean mount(boolean mount)
throws java.lang.Exception
- Mount or unmount a file system.
- Parameters:
mount - true to mount, false to unmount- Returns:
- true if successful.
- Throws:
java.lang.Exception -
getFreeSpace
public long getFreeSpace()
throws java.lang.Exception
- Returns the free space available in the given directory.
- Parameters:
path - the directory- Returns:
- the number of free bytes available.
- Throws:
java.lang.Exception -
getCapacity
public long getCapacity()
throws java.lang.Exception
- Returns the total capacity of the drive (in bytes).
- Returns:
- total capacity in bytes.
- Throws:
java.lang.Exception -
isMountable
public boolean isMountable()
isMounted
public boolean isMounted()
throws java.lang.Exception
- Returns true if the volume is mounted.
- Parameters:
mountPoint - the mount point of the file system.- Returns:
- true if the volume is mounted.
- Throws:
java.io.IOException - java.lang.InterruptedException -
hasAudioTracks
public boolean hasAudioTracks()
touch
public static void touch()