|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.util.OSType
public abstract class OSType
Types of Operating Systems for which specialized behavior is needed.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormField Summary | |
---|---|
static OSType |
DEFAULT
|
private static Logger |
log
The log stream |
static OSType |
MAC
|
private static String |
MAC_USER_DATA_AREA
The Mac user settings parent directory |
private String |
name
The name of the type |
private static int |
nextObj
|
private int |
obj
|
private static OSType |
osType
The machine's osType |
protected URL |
userArea
The user's private data area. |
private static URL |
userHome
The user's home directory. |
private static OSType[] |
VALUES
|
static OSType |
WIN32
|
private static String |
WIN32_USER_DATA_AREA
The Windows user settings parent directory |
Constructor Summary | |
---|---|
OSType(String name)
Simple ctor |
Method Summary | |
---|---|
boolean |
equals(Object o)
Prevent subclasses from overriding canonical identity based Object methods |
static OSType |
fromInteger(int i)
Lookup method to convert from an integer |
static OSType |
fromString(String name)
Lookup method to convert from a String |
static OSType |
getOSType()
Get the machine's OSType. |
abstract URL |
getUserArea()
Get the user area for this OSType. |
abstract URL |
getUserAreaFolder(String hiddenFolderName,
String visibleFolderName)
A folder in the user area. |
static URL |
getUserHome()
|
int |
hashCode()
Prevent subclasses from overriding canonical identity based Object methods |
(package private) Object |
readResolve()
|
int |
toInteger()
Get an integer representation for this CaseType |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final OSType MAC
public static final OSType WIN32
public static final OSType DEFAULT
private String name
private static int nextObj
private final int obj
private static final OSType[] VALUES
protected URL userArea
private static final String WIN32_USER_DATA_AREA
private static final String MAC_USER_DATA_AREA
private static OSType osType
private static URL userHome
private static final Logger log
Constructor Detail |
---|
public OSType(String name)
Method Detail |
---|
public abstract URL getUserArea()
public abstract URL getUserAreaFolder(String hiddenFolderName, String visibleFolderName)
hiddenFolderName
- is typically a "unix" hidden folder name such as .jsword.visibleFolderName
- is an visible folder name, such as JSword.
public static URL getUserHome()
public int toInteger()
public static OSType getOSType()
public static OSType fromString(String name)
public static OSType fromInteger(int i)
public final boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public final int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object readResolve()
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |