Class DiskDiff
- java.lang.Object
-
- com.webcodepro.applecommander.storage.compare.DiskDiff
-
public class DiskDiff extends java.lang.Object
Perform a disk comparison based on selected strategy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DiskDiff.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonResult
compare()
static ComparisonResult
compare(Disk diskA, Disk diskB)
void
compareAll(FormattedDisk[] formattedDisksA, FormattedDisk[] formattedDisksB)
void
compareByBlockGeometry(FormattedDisk formattedDiskA, FormattedDisk formattedDiskB)
Compare disks by 512-byte ProDOS/Pascal blocks.void
compareByFileContent(FormattedDisk formattedDiskA, FormattedDisk formattedDiskB)
Compare by file content.void
compareByFileName(FormattedDisk formattedDiskA, FormattedDisk formattedDiskB)
Compare by filename.void
compareByNativeGeometry(FormattedDisk formattedDiskA, FormattedDisk formattedDiskB)
Compare disks by whatever native geometry the disks have.void
compareByTrackSectorGeometry(FormattedDisk formattedDiskA, FormattedDisk formattedDiskB)
Compare disks by 256-byte DOS sectors.static DiskDiff.Builder
create(Disk diskA, Disk diskB)
-
-
-
Method Detail
-
compare
public static ComparisonResult compare(Disk diskA, Disk diskB)
-
create
public static DiskDiff.Builder create(Disk diskA, Disk diskB)
-
compare
public ComparisonResult compare()
-
compareAll
public void compareAll(FormattedDisk[] formattedDisksA, FormattedDisk[] formattedDisksB)
-
compareByNativeGeometry
public void compareByNativeGeometry(FormattedDisk formattedDiskA, FormattedDisk formattedDiskB)
Compare disks by whatever native geometry the disks have. Fails if geometries do not match.
-
compareByBlockGeometry
public void compareByBlockGeometry(FormattedDisk formattedDiskA, FormattedDisk formattedDiskB)
Compare disks by 512-byte ProDOS/Pascal blocks.
-
compareByTrackSectorGeometry
public void compareByTrackSectorGeometry(FormattedDisk formattedDiskA, FormattedDisk formattedDiskB)
Compare disks by 256-byte DOS sectors.
-
compareByFileName
public void compareByFileName(FormattedDisk formattedDiskA, FormattedDisk formattedDiskB)
Compare by filename. This accounts for names only in disk A, only in disk B, or different but same-named.
-
compareByFileContent
public void compareByFileContent(FormattedDisk formattedDiskA, FormattedDisk formattedDiskB)
Compare by file content. Accounts for content differences that are "only" in disk A or "only" in disk B.
-
-