|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.bootstrep.Utilities.Platform
public class Platform
This class contains some methods to retrieve information
about the platform, the loading software runs on.
Some of class methods are System methods.
| Field Summary | |
|---|---|
(package private) java.lang.String |
osName
|
(package private) java.lang.String |
osSeparator
|
(package private) java.lang.String |
osUserDir
|
| Constructor Summary | |
|---|---|
Platform()
Creates a new instance of Platform This constructor retrieves the operating system, the file separator and the user directory. |
|
Platform(java.lang.String myPlat)
Creates a new instance of Platform of type myPlat. |
|
| Method Summary | |
|---|---|
private java.lang.String |
getOs()
This method retrieves the current operating system |
java.lang.String |
getOsName()
get the value for the parameter osName |
java.lang.String |
getOsSeparator()
get the value for the parameter osSeparator |
java.lang.String |
getOsUserDir()
get the value for the parameter osUserDir |
java.lang.String |
getSeparator()
This method retrieves the correct separator for the platform |
private java.lang.String |
getUserDir()
This method retrieves the current user working dir, e.g. |
void |
setOsName(java.lang.String osName)
set the value for the parameter osName |
void |
setOsSeparator(java.lang.String osSeparator)
set the value for the parameter osSeparator |
void |
setOsUserDir(java.lang.String osUserDir)
set the value for the parameter osUserDir |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.lang.String osName
java.lang.String osSeparator
java.lang.String osUserDir
| Constructor Detail |
|---|
public Platform()
public Platform(java.lang.String myPlat)
myPlat - A string representing the platform name: es Linux, WinXP| Method Detail |
|---|
private java.lang.String getOs()
private java.lang.String getUserDir()
public java.lang.String getOsName()
public void setOsName(java.lang.String osName)
osName - the osName to setpublic java.lang.String getOsSeparator()
public void setOsSeparator(java.lang.String osSeparator)
osSeparator - the osSeparator to setpublic java.lang.String getOsUserDir()
public void setOsUserDir(java.lang.String osUserDir)
osUserDir - the osUserDir to setpublic java.lang.String getSeparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||