|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmars.mips.dump.AbstractDumpFormat
public abstract class AbstractDumpFormat
Abstract class for memory dump file formats. Provides constructors and defaults for everything except the dumpMemoryRange method itself.
| Constructor Summary | |
|---|---|
AbstractDumpFormat(String name,
String commandDescriptor,
String description,
String extension)
Typical constructor. |
|
| Method Summary | |
|---|---|
abstract void |
dumpMemoryRange(File file,
int firstAddress,
int lastAddress)
Write MIPS memory contents according to the specification for this format. |
String |
getCommandDescriptor()
One-word description of format to be used by MARS command mode parser and user in conjunction with the "dump" option. |
String |
getDescription()
Get a short description of the format, suitable for displaying along with the extension, in the file save dialog, or as a tool tip. |
String |
getFileExtension()
Get the file extension associated with this format. |
String |
toString()
String representing this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDumpFormat(String name,
String commandDescriptor,
String description,
String extension)
name - Brief descriptive name to be displayed in selection list.commandDescriptor - One-word descriptive name to be used by MARS command mode parser and user.
Any spaces in this string will be removed.description - Description to go with standard file extension for
display in file save dialog or to be used as tool tip.extension - Standard file extension for this format. Null if none.| Method Detail |
|---|
public String getFileExtension()
getFileExtension in interface DumpFormatpublic String getDescription()
getDescription in interface DumpFormatpublic String toString()
toString in interface DumpFormattoString in class Objectpublic String getCommandDescriptor()
getCommandDescriptor in interface DumpFormat
public abstract void dumpMemoryRange(File file,
int firstAddress,
int lastAddress)
throws AddressErrorException,
IOException
dumpMemoryRange in interface DumpFormatfile - File in which to store MIPS memory contents.firstAddress - first (lowest) memory address to dump. In bytes but
must be on word boundary.lastAddress - last (highest) memory address to dump. In bytes but
must be on word boundary. Will dump the word that starts at this address.
AddressErrorException - if firstAddress is invalid or not on a word boundary.
IOException - if error occurs during file output.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||