|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webcodepro.applecommander.storage.physical.ByteArrayImageLayout
public class ByteArrayImageLayout
Manages the layout of the physical disk. This hides implementation details, such as if the disk is in 2IMG order.
Constructor Summary | |
---|---|
ByteArrayImageLayout(byte[] diskImage)
Construct a ByteArrayImageLayout. |
|
ByteArrayImageLayout(byte[] diskImage,
boolean changed)
Construct a ByteArrayImageLayout. |
|
ByteArrayImageLayout(int size)
Construct a ByteArrayImageLayout. |
Method Summary | |
---|---|
byte[] |
getDiskImage()
Get the physical disk image. |
int |
getPhysicalSize()
Answer with the physical size of this disk volume. |
boolean |
hasChanged()
Indicates if the disk has changed. |
byte[] |
readBytes(int start,
int length)
Extract a portion of the disk image. |
void |
setChanged(boolean changed)
Set the changed indicator. |
void |
setDiskImage(byte[] diskImage)
Set the physical disk image. |
void |
writeBytes(int start,
byte[] bytes)
Write data to the disk image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteArrayImageLayout(byte[] diskImage)
public ByteArrayImageLayout(byte[] diskImage, boolean changed)
public ByteArrayImageLayout(int size)
Method Detail |
---|
public byte[] getDiskImage()
public void setDiskImage(byte[] diskImage)
public int getPhysicalSize()
public byte[] readBytes(int start, int length)
public void writeBytes(int start, byte[] bytes)
public boolean hasChanged()
public void setChanged(boolean changed)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |