|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.limewire.mojito.util.ArrayUtils
public final class ArrayUtils
Miscellaneous utilities for Arrays
| Method Summary | |
|---|---|
static byte[] |
parseHexString(String data)
Converts a HEX String to a byte value |
static String |
toBinString(byte[] data)
Returns data as BIN String |
static String |
toBinString(byte[] data,
int wrapAtColumn)
Returns data as BIN String and inserts new lines every wrapAtColumn |
static String |
toBinString(byte[] data,
int offset,
int length)
Returns data as a binary encoded String |
static String |
toBinString(byte[] data,
int offset,
int length,
int wrapAtColumn)
Returns data as a binary encoded String |
static String |
toHexString(byte[] data)
Returns data as a HEX String |
static String |
toHexString(byte[] data,
int wrapAtColumn)
Returns data as a HEX String and inserts new lines every wrapAtColumn |
static String |
toHexString(byte[] data,
int offset,
int length)
Returns data as a hex encoded String |
static String |
toHexString(byte[] data,
int offset,
int length,
int wrapAtColumn)
Returns data as a hex encoded String |
static int |
toInteger(String ascii)
A helper method to convert a 4 character ASCII String into an Interger |
static String |
toString(int num)
A helper method to convert each of vendorId's 4 bytes into an ASCII character and to return them as String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String toHexString(byte[] data)
public static String toHexString(byte[] data,
int wrapAtColumn)
public static String toHexString(byte[] data,
int offset,
int length)
public static String toHexString(byte[] data,
int offset,
int length,
int wrapAtColumn)
public static String toBinString(byte[] data)
public static String toBinString(byte[] data,
int wrapAtColumn)
public static String toBinString(byte[] data,
int offset,
int length)
public static String toBinString(byte[] data,
int offset,
int length,
int wrapAtColumn)
public static byte[] parseHexString(String data)
public static int toInteger(String ascii)
public static String toString(int num)
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||