Class PascalDiskOptimizer

java.lang.Object
com.webcodepro.applecommander.storage.os.pascal.PascalDiskOptimizer
All Implemented Interfaces:
DiskOptimizer

public class PascalDiskOptimizer extends Object implements DiskOptimizer
A simple Pascal disk optimizer. This should emulate a "krunch" to the front of the disk.
  • Constructor Details

  • Method Details

    • canOptimizeDisk

      public boolean canOptimizeDisk()
      Description copied from interface: DiskOptimizer
      Indicates if this disk can be optimized. For instance, a Pascal disk can be "krunched" to pack the files together but it may not need it.
      Specified by:
      canOptimizeDisk in interface DiskOptimizer
    • optimizeDisk

      public void optimizeDisk()
      Description copied from interface: DiskOptimizer
      Perform disk optimization.
      Specified by:
      optimizeDisk in interface DiskOptimizer
    • getSortedFiles

      public List<PascalFileEntry> getSortedFiles()