cz.polous.andaria
Class WindowsOS

java.lang.Object
  extended by cz.polous.andaria.OperatingSystem
      extended by cz.polous.andaria.WindowsOS

 class WindowsOS
extends OperatingSystem

Author:
p0l0us

Field Summary
private static Log log
           
private static java.lang.String regOriginFileName
           
private  java.lang.String uoPath
           
 
Constructor Summary
WindowsOS()
          Creates a new instance of WindowsOS
 
Method Summary
private  java.lang.String generateRegistryData(java.lang.String uoPath)
           
 java.lang.String[] getBatchExecCommand(java.io.File f)
           
 java.lang.String getConfigPath()
           
 java.lang.String getRun_command()
           
 java.lang.String getUltima_online_path()
           
 void renewWindowsRegistry()
           
private static byte[] toByteArray(java.lang.String str)
          Convert a string to byte[] array.
 
Methods inherited from class cz.polous.andaria.OperatingSystem
createOperatingSystemInstance, deleteUOFile, getExistingFileInstance, getFileExistingInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regOriginFileName

private static final java.lang.String regOriginFileName
See Also:
Constant Field Values

log

private static Log log

uoPath

private java.lang.String uoPath
Constructor Detail

WindowsOS

WindowsOS()
Creates a new instance of WindowsOS

Method Detail

getRun_command

public java.lang.String getRun_command()
Specified by:
getRun_command in class OperatingSystem

getUltima_online_path

public java.lang.String getUltima_online_path()
Specified by:
getUltima_online_path in class OperatingSystem

getConfigPath

public java.lang.String getConfigPath()
Specified by:
getConfigPath in class OperatingSystem
Returns:
XML cofiguration file patch

getBatchExecCommand

public java.lang.String[] getBatchExecCommand(java.io.File f)
Specified by:
getBatchExecCommand in class OperatingSystem
Returns:
operating system oriented patch script command

toByteArray

private static byte[] toByteArray(java.lang.String str)
Convert a string to byte[] array.

Parameters:
str - input string
Returns:
byte array of a string

renewWindowsRegistry

public void renewWindowsRegistry()

generateRegistryData

private java.lang.String generateRegistryData(java.lang.String uoPath)
Returns:
ultima online path from windows registers