ak.obj
Class Tools

java.lang.Object
  |
  +--ak.obj.FileParser
        |
        +--ak.obj.Tools

public class Tools
extends FileParser

This class extends the FileParser with some useful(for platform-compability) conversion-methods.

Version:
1.1 Copyright(c)Alexej Kupin
Author:
Alexej Kupin (05.05.2000)

Constructor Summary
Tools()
          Construct Tools
 
Method Summary
static java.lang.String ConvertSysPath(java.lang.String sPath)
          Converts a path to the current system path (e.g. it replaces the directory sign if needed)
static java.lang.String GetParentDIR(java.lang.String sPath)
          gets the parent directory for a given path
static java.lang.String GetSystDIR()
          gets the "\" or "/" as directory sign
static java.lang.String GetSystNL()
          gets the system dependent NewLine sign
static int StringToInt(java.lang.String sNumber)
          Converts a String to int.(if failure returns 0 )
static java.lang.String UrlToPath(java.lang.String sURL)
          Converts an URL to valid system path For the JAR-file it returns the directory of the jar-file
 
Methods inherited from class ak.obj.FileParser
FP_AppendToFile, FP_CopyFile, FP_FileToString, FP_FileToString, FP_FileToVector, FP_FileToVector, FP_GetByPattern, FP_GetParamBool, FP_GetParamByName, FP_GetParams, FP_GetParams, FP_GetParamsInSection, FP_GetParamsInSection, FP_GetParamString, FP_GetParamString, FP_GetParamVector, FP_GetSections, FP_ParseParam, FP_ParseVector, FP_ParseVector, FP_StringToVector, FP_StringToVector
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Construct Tools
Method Detail

GetParentDIR

public static java.lang.String GetParentDIR(java.lang.String sPath)
gets the parent directory for a given path

GetSystDIR

public static java.lang.String GetSystDIR()
gets the "\" or "/" as directory sign

GetSystNL

public static java.lang.String GetSystNL()
gets the system dependent NewLine sign

StringToInt

public static int StringToInt(java.lang.String sNumber)
Converts a String to int.(if failure returns 0 )

UrlToPath

public static java.lang.String UrlToPath(java.lang.String sURL)
Converts an URL to valid system path For the JAR-file it returns the directory of the jar-file

ConvertSysPath

public static java.lang.String ConvertSysPath(java.lang.String sPath)
Converts a path to the current system path (e.g. it replaces the directory sign if needed)