com.jniwrapper.win32.io
Class FolderInfo

java.lang.Object
  extended by com.jniwrapper.win32.io.FileInfo
      extended by com.jniwrapper.win32.io.FolderInfo

public class FolderInfo
extends FileInfo

The FolderInfo class is a container of folder information.


Constructor Summary
FolderInfo(java.lang.String fileName)
          Creates instance of the FolderInfo
FolderInfo(java.lang.String path, boolean recursive)
          Creates instance of the FolderInfo
FolderInfo(java.lang.String path, java.io.FileFilter filter, boolean recursive)
          Creates instance of the FolderInfo with specified file filter
 
Method Summary
 int getFileCount()
          Returns the count of the files in this folder
 java.util.List getFiles()
          Returns content of this folder
 void load()
          Loads the contents of this folder
protected  void loadFiles(FolderInfo result, java.io.File rootFolder)
          Loads the contents of the specified folder
 
Methods inherited from class com.jniwrapper.win32.io.FileInfo
getAttributes, getFileName, getLastModified, getSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FolderInfo

public FolderInfo(java.lang.String fileName)
Creates instance of the FolderInfo

Parameters:
fileName - Path to the folder

FolderInfo

public FolderInfo(java.lang.String path,
                  java.io.FileFilter filter,
                  boolean recursive)
           throws java.lang.IllegalArgumentException
Creates instance of the FolderInfo with specified file filter

Parameters:
path - Path to the folder
filter - File filter
recursive - If this value is TRUE subfolders and theirs files will be listed
Throws:
java.lang.IllegalArgumentException

FolderInfo

public FolderInfo(java.lang.String path,
                  boolean recursive)
Creates instance of the FolderInfo

Parameters:
path - Path to the folder
recursive - If this value is TRUE subfolders and theirs files will be listed
Method Detail

loadFiles

protected void loadFiles(FolderInfo result,
                         java.io.File rootFolder)
Loads the contents of the specified folder


load

public void load()
Loads the contents of this folder


getFileCount

public int getFileCount()
Returns the count of the files in this folder

Returns:
The count of the files in this folder

getFiles

public java.util.List getFiles()
Returns content of this folder

Returns:
Content of this folder