|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.muchsoft.util.Mac
This class offers Mac-specific (but portable) conversion routines. The "OSType" methods are useful when working with file metadata like type and creator codes.
Version History:
Method Summary | |
static java.lang.String |
fromOSType(int type)
Converts an OS type from an int value to a 4-byte String. |
static int |
toOSType(char a,
char b,
char c,
char d)
Converts four char values to an int value representing the OS type. |
static int |
toOSType(java.lang.String s)
Converts a 4-byte String to an int value representing the OS type. |
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 fromOSType(int type)
type
- the OS type as an int value
public static int toOSType(java.lang.String s)
s
- a 4-byte String
public static int toOSType(char a, char b, char c, char d)
a
- the char value containing the most significant byteb
- the char value containing the second most significant bytec
- the char value containing the least but one significant byted
- the char value containing the least significant byte
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |