cz.polous.andaria
Class OperatingSystem

java.lang.Object
  extended by cz.polous.andaria.OperatingSystem
Direct Known Subclasses:
LinuxOS, WindowsOS

abstract class OperatingSystem
extends java.lang.Object

Provide operating system specific methods

Version:
0.2
Author:
Martin Polehla (andaria_patcher@polous.cz)

Field Summary
private static Log log
           
 
Constructor Summary
OperatingSystem()
          Creates a new instance of OperatingSystem
 
Method Summary
(package private) static OperatingSystem createOperatingSystemInstance()
          Creates a new instance of current operating system
 void deleteUOFile(java.lang.String subDir, java.lang.String fileName)
           
(package private) abstract  java.lang.String[] getBatchExecCommand(java.io.File f)
           
(package private) abstract  java.lang.String getConfigPath()
           
 java.io.File getExistingFileInstance(java.lang.String fn)
          and getFileExistingInstance(File f) wrapper
 java.io.File getFileExistingInstance(java.io.File f)
          Create a File instance and gurantee file existing
(package private) abstract  java.lang.String getRun_command()
           
(package private) abstract  java.lang.String getUltima_online_path()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log
Constructor Detail

OperatingSystem

public OperatingSystem()
Creates a new instance of OperatingSystem

Method Detail

getRun_command

abstract java.lang.String getRun_command()

getUltima_online_path

abstract java.lang.String getUltima_online_path()

createOperatingSystemInstance

static OperatingSystem createOperatingSystemInstance()
Creates a new instance of current operating system

Returns:
OS object with current os specific methods

getExistingFileInstance

public java.io.File getExistingFileInstance(java.lang.String fn)
and getFileExistingInstance(File f) wrapper

Returns:
physical existing file instance
See Also:
getFileExistingInstance(File f)

getFileExistingInstance

public java.io.File getFileExistingInstance(java.io.File f)
Create a File instance and gurantee file existing

Returns:
physical existing file instance

deleteUOFile

public void deleteUOFile(java.lang.String subDir,
                         java.lang.String fileName)

getConfigPath

abstract java.lang.String getConfigPath()
Returns:
XML cofiguration file patch

getBatchExecCommand

abstract java.lang.String[] getBatchExecCommand(java.io.File f)
Returns:
os oriented patch script command