java.lang.Object
com.webcodepro.applecommander.storage.Disks

public class Disks extends Object
  • Constructor Details

    • Disks

      public Disks()
  • Method Details

    • setFactories

      public static void setFactories(DiskFactory... factories)
      This call is a shim for the AntTask to populate its known factories since ServiceLoader doesn't appear to work within the Ant classpath.
    • inspect

      public static DiskFactory.Context inspect(Source source)
      Standardized FormattedDisk creation. Uses the ServiceLoader mechanism to identify all potential FormattedDisk factories.
    • sizeToFit

      public static int sizeToFit(long bytes)
      Find the standard sized disk that will fit the requested number of bytes.
      Returns:
      int size of the disk if it will satisfy the request, -1 otherwise