|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jfrace.Util
Collection of utility functions.
Constructor Summary | |
Util()
|
Method Summary | |
static void |
appendHex(java.lang.StringBuffer sb,
byte number)
Append a two-digit hexadecimal number (upper case) to the given string buffer. |
static void |
appendHex(java.lang.StringBuffer sb,
int number)
Append an eight-digit hexadecimal number (upper case) to the given string buffer. |
static void |
appendHex(java.lang.StringBuffer sb,
int n,
long number)
Append a n-digit hexadecimal number (upper case) to the given string buffer. |
static byte[] |
generateBinaryData(java.lang.String intelHexData)
Generate binary data from Intel Hex Format. |
static java.awt.Image |
loadImage(java.lang.String imgName)
Load an image. |
static int |
parseNumber(java.lang.String numberString)
Parse a string as a number. |
static byte[] |
readBinaryData(java.lang.String fileName)
Read a binary file. |
static byte[] |
readBinaryData(java.net.URL url)
Read some binary data from an URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Util()
Method Detail |
public static int parseNumber(java.lang.String numberString)
public static void appendHex(java.lang.StringBuffer sb, byte number)
sb
- string buffer.number
- 8-bit number.public static void appendHex(java.lang.StringBuffer sb, int number)
sb
- string buffer.number
- 32-bit number.public static void appendHex(java.lang.StringBuffer sb, int n, long number)
sb
- string buffer.n
- number of digits.number
- number.public static byte[] readBinaryData(java.net.URL url) throws java.lang.Exception
url
- URL of the source of the data.public static byte[] readBinaryData(java.lang.String fileName)
hex
Intel-Hex-Format is assumed.public static byte[] generateBinaryData(java.lang.String intelHexData)
intelHexData
- data in Intel Hex Formatpublic static java.awt.Image loadImage(java.lang.String imgName)
Emulator
singleton
in order to decide whether this method is invoked inside
an application or an applet.imgName
- file name of the image. Path is relative
to codeBase
.null
if image not found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |