zeroslackr.installer
Class Tools

java.lang.Object
  extended by zeroslackr.installer.Tools

public abstract class Tools
extends Object

Abstract Tools Class.

Collection of useful methods.

Licensed under GNU GPL (Version 3).

Version:
Jan 18, 2008
Author:
Keripo

Constructor Summary
Tools()
           
 
Method Summary
static String convertPath(String path)
          Convert processed path to native equivalent.
static int getHostOS()
          Get operating system of host computer.
static String getiPodPath()
          Get iPod's location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

convertPath

public static String convertPath(String path)
Convert processed path to native equivalent.

Parameters:
path - String of path to be converted.
Returns:
String of converted path.

getHostOS

public static int getHostOS()
Get operating system of host computer.

Returns:
-1 if Undeterminable,
0 if Unsupported,
11 if Linux (86),
12 if Linux (64),
13 if Linux (PPC),
21 if Windows,
31 if Mac OSX

getiPodPath

public static String getiPodPath()
                          throws Exception
Get iPod's location.

Returns:
Location of iPod.
Throws:
Exception