public class ImgFile
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
short[] |
data
This array stores the firmware image.
|
boolean |
isFx3
Assumed to be an FX3 firmware.
|
long |
startVector
Start vector.
|
| Constructor and Description |
|---|
ImgFile(java.io.InputStream in,
java.lang.String name)
Constructs an instance from a given file name.
|
ImgFile(java.lang.String fileName)
Constructs an instance from a given file name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dataInfo(java.io.PrintStream out)
Print out some information about the memory usage.
|
static long |
uncompressAddr(int addr)
Uncompresses the FX3 address space.
|
public short[] data
public long startVector
public boolean isFx3
ZtexImgFile1.public ImgFile(java.io.InputStream in,
java.lang.String name)
throws java.io.IOException,
ImgFileDamagedException
in - Input stream from which the firmware file is read.name - Name of the input.java.io.IOException - If an read error occurred.ImgFileDamagedException - If the firmware file is damaged.public ImgFile(java.lang.String fileName)
throws java.io.IOException,
ImgFileDamagedException
fileName - The file name.java.io.IOException - If an read error occurred.ImgFileDamagedException - If the firmware image file is damaged.public static final long uncompressAddr(int addr)
addr - Compressed addresspublic void dataInfo(java.io.PrintStream out)
out - Where the data is printed out.