|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.tumba.parser.swf.Hex
public class Hex
Hex dump conversion utilities
Field Summary | |
---|---|
private static Hex |
_theInstance
|
Constructor Summary | |
---|---|
private |
Hex()
|
Method Summary | |
---|---|
static java.lang.String |
dump(byte[] data,
long startAddress,
java.lang.String indent)
Description of the Method |
static void |
dump(java.io.PrintWriter out,
byte[] data,
int startIndex,
int length,
long startAddress2,
java.lang.String indent,
boolean includeBinary)
Description of the Method |
static void |
dump(java.io.PrintWriter out,
byte[] data,
long startAddress,
java.lang.String indent,
boolean includeBinary)
Description of the Method |
static java.lang.String |
dumpWithBinary(byte[] data,
long startAddress,
java.lang.String indent)
Description of the Method |
protected static int |
getByte(byte b)
Get unsigned byte |
static Hex |
getInstance()
|
static java.lang.String |
leadingZeros(java.lang.String string,
int size)
Pad the string with leading zeros until it it reached the given size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Hex _theInstance
Constructor Detail |
---|
private Hex()
Method Detail |
---|
public static Hex getInstance()
public static java.lang.String dump(byte[] data, long startAddress, java.lang.String indent)
data
- Description of the ParameterstartAddress
- Description of the Parameterindent
- Description of the Parameter
public static java.lang.String dumpWithBinary(byte[] data, long startAddress, java.lang.String indent)
data
- Description of the ParameterstartAddress
- Description of the Parameterindent
- Description of the Parameter
public static void dump(java.io.PrintWriter out, byte[] data, long startAddress, java.lang.String indent, boolean includeBinary)
out
- Description of the Parameterdata
- Description of the ParameterstartAddress
- Description of the Parameterindent
- Description of the ParameterincludeBinary
- Description of the Parameterpublic static void dump(java.io.PrintWriter out, byte[] data, int startIndex, int length, long startAddress2, java.lang.String indent, boolean includeBinary)
out
- Description of the Parameterdata
- Description of the ParameterstartIndex
- Description of the Parameterlength
- Description of the ParameterstartAddress
- Description of the Parameterindent
- Description of the ParameterincludeBinary
- Description of the Parameterpublic static java.lang.String leadingZeros(java.lang.String string, int size)
string
- Description of the Parametersize
- Description of the Parameter
protected static int getByte(byte b)
b
- Description of the Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |