|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.util.StringUtilities
public class StringUtilities
| Constructor Summary | |
|---|---|
StringUtilities()
|
|
| Method Summary | |
|---|---|
static String |
asciiBytesToString(byte[] val)
Convert a byte array to a String assuming the ASCII
character set, for use in cases (such as early in the boot process)
where character set conversion is unavailable or inadvisable. |
static String |
asciiBytesToString(byte[] val,
int start,
int length)
Convert a byte array to a String assuming the ASCII
character set, for use in cases (such as early in the boot process)
where character set conversion is unavailable or inadvisable. |
static byte[] |
stringToBytes(String fileName)
Convert a String filename to a byte array using the
deprecated ascii String method for cases where passing it through
a character set converter is too heavyweight. |
static byte[] |
stringToBytesNullTerminated(String fileName)
Convert a String filename to a byte array using the
deprecated ascii String method for cases where passing it through
a character set converter is too heavyweight. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtilities()
| Method Detail |
|---|
public static byte[] stringToBytesNullTerminated(String fileName)
String filename to a byte array using the
deprecated ascii String method for cases where passing it through
a character set converter is too heavyweight. Allocates an
additional null-terminator byte so that the resulting byte array
can be passed to native C functions.
fileName - File name
public static byte[] stringToBytes(String fileName)
String filename to a byte array using the
deprecated ascii String method for cases where passing it through
a character set converter is too heavyweight.
fileName - File name
public static String asciiBytesToString(byte[] val)
String assuming the ASCII
character set, for use in cases (such as early in the boot process)
where character set conversion is unavailable or inadvisable.
val - Byte array to convert
public static String asciiBytesToString(byte[] val,
int start,
int length)
String assuming the ASCII
character set, for use in cases (such as early in the boot process)
where character set conversion is unavailable or inadvisable.
val - Byte array to convertstart - Start the string at this bytelength - Use 'length' bytes
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||