com.compomics.util.io
Class FileSystemAccessor

java.lang.Object
  extended by com.compomics.util.io.FileSystemAccessor

public class FileSystemAccessor
extends java.lang.Object

This class serves as a fast OS independent access point to the file system. Created by IntelliJ IDEA. User: kenny Date: Feb 22, 2010 Time: 1:39:58 PM


Constructor Summary
FileSystemAccessor()
          Empty constructor.
 
Method Summary
static java.io.File getHomeFolder()
          Returns the user home folder.
static OperatingSystemEnum getOperatingSystem()
          Get the operating system.
static java.lang.String getPathOfClass(java.lang.String aClassname)
          Returns the absolute path of the underlying file system of the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemAccessor

public FileSystemAccessor()
Empty constructor.

Method Detail

getOperatingSystem

public static OperatingSystemEnum getOperatingSystem()
Get the operating system.

Returns:
This method returns the underlying operating system as a OperatingSystemEnum instance.

getHomeFolder

public static java.io.File getHomeFolder()
Returns the user home folder.

Returns:
the user home folder

getPathOfClass

public static java.lang.String getPathOfClass(java.lang.String aClassname)
Returns the absolute path of the underlying file system of the given class.

Parameters:
aClassname - The classname of which the parent folder needs to be returned (e.g.: "FileSystemAccessor.class")
Returns:
The full path to the parent classname. (e.g.: /home/user/java/compomics/utilities/)


Copyright © 2013. All Rights Reserved.