openlsd.common
Class LSDDuLib

java.lang.Object
  extended by openlsd.common.LSDDuLib

public class LSDDuLib
extends java.lang.Object

Interface to C lib that compute somehow equivalent to du -ks

Author:
Frederic BREGIER LGPL 2007

Constructor Summary
LSDDuLib()
           
 
Method Summary
static java.lang.String getDu(java.lang.String pathFrom)
          Get result from something close to du -ks
static boolean initNativeLibrary(java.lang.String libpath)
          Initialize the Native Library from path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSDDuLib

public LSDDuLib()
Method Detail

getDu

public static java.lang.String getDu(java.lang.String pathFrom)
Get result from something close to du -ks

Parameters:
pathFrom -
Returns:
a String of the form "globalsize_inKb path nbdirs nbfiles"

initNativeLibrary

public static final boolean initNativeLibrary(java.lang.String libpath)
Initialize the Native Library from path

Parameters:
libpath -
Returns:
True if the native Library is loaded, else False