palmed.file
Interface IDirectory

All Known Implementing Classes:
Directory, Root

public interface IDirectory

This interface defines a file system directory.

Version:
$Revision: 289 $ $Date: 2005-12-09 16:44:51 +0900 (ven., 09 déc. 2005) $
Author:
Mathieu Champlon

Method Summary
 void accept(IDirectoryVisitor visitor)
          Visit the current directory.
 void create(java.lang.String name)
          Create a sub-directory.
 boolean isInPath(java.lang.String name)
          Test if a given name is in the path of the directory.
 boolean isWritable()
          Test if directories or files can be created in this directory.
 IDirectory select(java.lang.String filename, IFileBrowserListener listener)
          Select a file or sub-directory.
 

Method Detail

select

IDirectory select(java.lang.String filename,
                  IFileBrowserListener listener)
Select a file or sub-directory.

Parameters:
filename - the item name
listener - the file selection listener
Returns:
a descriptor for the item

accept

void accept(IDirectoryVisitor visitor)
            throws java.io.IOException
Visit the current directory.

Parameters:
visitor - the directory visitor
Throws:
java.io.IOException - an io exception occured

isWritable

boolean isWritable()
Test if directories or files can be created in this directory.

Returns:
whether directories or files can be created

create

void create(java.lang.String name)
            throws java.io.IOException
Create a sub-directory.

Parameters:
name - the sub-directory name
Throws:
java.io.IOException - an io exception occured

isInPath

boolean isInPath(java.lang.String name)
Test if a given name is in the path of the directory.

Parameters:
name - the name to test
Returns:
whether the name is part of the path of the directory or not


Copyright © 2004-2006 PalmEd. All Rights Reserved.