Class UniversalDiskImageLayout
- java.lang.Object
-
- com.webcodepro.applecommander.storage.physical.ByteArrayImageLayout
-
- com.webcodepro.applecommander.storage.physical.UniversalDiskImageLayout
-
public class UniversalDiskImageLayout extends ByteArrayImageLayout
Manages the physical 2IMG disk.
-
-
Field Summary
Fields Modifier and Type Field Description static intOFFSETThis is the 2IMG offset.
-
Constructor Summary
Constructors Constructor Description UniversalDiskImageLayout(byte[] diskImage)Construct a UniversalDiskImageLayout.UniversalDiskImageLayout(byte[] diskImage, boolean changed)Construct a UniversalDiskImageLayout.UniversalDiskImageLayout(int size)Construct a UniversalDiskImageLayout.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]readBytes(int start, int length)Extract a portion of the disk image.voidwriteBytes(int start, byte[] bytes)Write data to the disk image.-
Methods inherited from class com.webcodepro.applecommander.storage.physical.ByteArrayImageLayout
getDiskImage, getPhysicalSize, hasChanged, setChanged, setDiskImage
-
-
-
-
Field Detail
-
OFFSET
public static final int OFFSET
This is the 2IMG offset.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UniversalDiskImageLayout
public UniversalDiskImageLayout(byte[] diskImage)
Construct a UniversalDiskImageLayout.
-
UniversalDiskImageLayout
public UniversalDiskImageLayout(byte[] diskImage, boolean changed)Construct a UniversalDiskImageLayout.
-
UniversalDiskImageLayout
public UniversalDiskImageLayout(int size)
Construct a UniversalDiskImageLayout.
-
-
Method Detail
-
readBytes
public byte[] readBytes(int start, int length)Extract a portion of the disk image.- Overrides:
readBytesin classByteArrayImageLayout
-
writeBytes
public void writeBytes(int start, byte[] bytes)Write data to the disk image.- Overrides:
writeBytesin classByteArrayImageLayout
-
-