|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.apple.mrj.jdirect.StringUtil
StringUtil
is a utility class used by JDirect 3 classes to
convert between Java strings, C-Strings, Pascal-Strings, and CFStrings.
Constructor Summary | |
StringUtil()
|
Method Summary | |
static String |
fromCFString(int cfstringRef)
Creates a String from a CFStringRef |
static String |
fromCString(byte[] cStr)
Creates a Java String from a C style string |
static String |
fromPascalString(byte[] pStr)
Creates a Java String from a Pascal style string |
static int |
toCFString(String str)
Creates a CFStringRef from a Java String |
static byte[] |
toCString(String str)
Creates a C style string from a Java String |
static byte[] |
toPascalString(String str)
Creates a Pascal style string from a Java String |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtil()
Method Detail |
public static int toCFString(String str)
public static String fromCFString(int cfstringRef)
public static byte[] toCString(String str)
public static String fromCString(byte[] cStr)
public static byte[] toPascalString(String str)
public static String fromPascalString(byte[] pStr)
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.