|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectztex.ImgFile
public class ImgFile
A class representing a firmware image.
Field Summary | |
---|---|
short[] |
data
This array stores the firmware image. |
boolean |
isFx3
Assumed to be an FX3 firmware. |
long |
startVector
Start vector. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
dataInfo(java.io.PrintStream out)
Print out some information about the memory usage. |
static long |
uncompressAddr(int addr)
Uncompresses the FX3 address space. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public short[] data
public long startVector
public boolean isFx3
ZtexImgFile1
.
Constructor Detail |
---|
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.Method Detail |
---|
public static final long uncompressAddr(int addr)
addr
- Compressed address
public void dataInfo(java.io.PrintStream out)
out
- Where the data is printed out.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |