Package org.applecommander.image
Class DiskCopyImage
java.lang.Object
org.applecommander.image.DiskCopyImage
- All Implemented Interfaces:
CapabilityProvider,HintProvider,Source,Container
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancan(Capability capability) intchecksum(int offset, int requestedLength) Calculate the expected checksum.void<T> Optional<T> getInfo()getName()intgetSize()booleanbooleanreadBytes(int offset, int length) voidwriteBytes(int offset, DataBuffer data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.applecommander.hint.HintProvider
isAnyMethods inherited from interface org.applecommander.source.Source
extensionLike, isApproxBetween, isApproxEQ
-
Field Details
-
HEADER_SIZE
public static final int HEADER_SIZE- See Also:
-
-
Constructor Details
-
DiskCopyImage
-
-
Method Details
-
checksum
public int checksum(int offset, int requestedLength) Calculate the expected checksum. Note that we try to be careful about length as there are DiskCopy images that appear to have been truncated over time. Since the checksums should NOT match, presumably the user may notice that detail! -
can
- Specified by:
canin interfaceCapabilityProvider
-
get
-
is
- Specified by:
isin interfaceHintProvider
-
getInfo
-
getSize
public int getSize() -
getName
-
readAllBytes
- Specified by:
readAllBytesin interfaceSource
-
readBytes
-
writeBytes
- Specified by:
writeBytesin interfaceSource
-
hasChanged
public boolean hasChanged()- Specified by:
hasChangedin interfaceSource
-
clearChanges
public void clearChanges()- Specified by:
clearChangesin interfaceSource
-
information
- Specified by:
informationin interfaceSource
-