|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.util.HexEncoder
public final class HexEncoder
A helper class to create hex-encoded representations of numbers.
| Method Summary | |
|---|---|
static java.lang.String |
encode(char c)
Returns an hex encoding of the given character as a four-character string. |
static java.lang.String |
encode(int n,
int width)
Returns an hex encoding of the given number as a string of the given length, left-padded with zeros if necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String encode(int n,
int width)
n - a numberwidth - required length of the string
public static java.lang.String encode(char c)
c - a character
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||