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 class
static final record
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
can
(Capability capability) int
checksum
(int offset, int requestedLength) Calculate the expected checksum.void
<T> Optional
<T> getInfo()
getName()
int
getSize()
boolean
boolean
readBytes
(int offset, int length) void
writeBytes
(int offset, DataBuffer data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.applecommander.hint.HintProvider
isAny
Methods inherited from interface org.applecommander.source.Source
extensionLike, isApproxEQ, isApproxLE
-
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:
can
in interfaceCapabilityProvider
-
get
-
is
- Specified by:
is
in interfaceHintProvider
-
getInfo
-
getSize
public int getSize() -
getName
-
readAllBytes
- Specified by:
readAllBytes
in interfaceSource
-
readBytes
-
writeBytes
- Specified by:
writeBytes
in interfaceSource
-
hasChanged
public boolean hasChanged()- Specified by:
hasChanged
in interfaceSource
-
clearChanges
public void clearChanges()- Specified by:
clearChanges
in interfaceSource
-
information
- Specified by:
information
in interfaceSource
-