All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.archiveaccessor.filestore.Folder

java.lang.Object
   |
   +----com.ibm.archiveaccessor.filestore.FolderBucket
           |
           +----com.ibm.archiveaccessor.filestore.Folder

public class Folder
extends FolderBucket
The Folder class adds file operations to a folder bucket


Constructor Index

 o Folder()
Creates a folder bucket with no contents.
 o Folder(String)
Creates a folder bucket with the list of file names of the folder.
 o Folder(String, String)
Creates a folder bucket with the filtered list of file names of the folder.

Method Index

 o getName()
Gets the name of the folder.
 o makeSubFolder(String)
Mekes the folder.
 o open(String)
Open the folder.
 o putFileName(String)
Puts the file name in the folder bucket.
 o rename(String)
Renames the folder.
 o setName(String)
Sets the name of the folder.
 o writeFile(String, byte[])
Writes the file to the folder.

Constructors

 o Folder
 public Folder()
Creates a folder bucket with no contents.

 o Folder
 public Folder(String aName) throws IOException, SecurityException
Creates a folder bucket with the list of file names of the folder.

Parameters:
aName - the name of the folder.
Throws: IOException
may be thrown when reading from the folder.
Throws: SecurityException
if a security manager exists, its checkRead method is called with the pathname of this folder to see if the application is allowed read access to the folder.
 o Folder
 public Folder(String aName,
               String aFilter) throws IOException, SecurityException
Creates a folder bucket with the filtered list of file names of the folder.

Parameters:
aName - the name of the folder.
aFilter - a file name filter.
Throws: IOException
may be thrown when reading from the folder.
Throws: SecurityException
if a security manager exists, its checkRead method is called with the pathname of this folder to see if the application is allowed read access to the folder.

Methods

 o setName
 public void setName(String aName)
Sets the name of the folder.

Parameters:
aName - the name of the folder.
 o getName
 public String getName()
Gets the name of the folder.

Returns:
the name of the folder.
 o open
 public void open(String aName)
Open the folder.

Parameters:
aName - the name of the folder.
Overrides:
open in class FolderBucket
 o rename
 public void rename(String aNewName) throws IOException
Renames the folder.

Parameters:
aNewName - the new name of the folder.
Throws: SecurityException
if a security manager exists, its checkWrite method is called both with the pathname of this folder and with the pathname of the destination target object to see if the application is allowed to write to both folder.
 o putFileName
 public void putFileName(String aFileName)
Puts the file name in the folder bucket.

Parameters:
aFileName - the name of the file to be put in the folder bucket.
 o writeFile
 public void writeFile(String aFileName,
                       byte aData[]) throws IOException
Writes the file to the folder.

Parameters:
aFileName - the name of the file to be written in the folder.
aData - the byte array associated with the file name.
Throws: IOException
if an I/O error occurs.
 o makeSubFolder
 public void makeSubFolder(String aSubFolderName)
Mekes the folder.

Parameters:
aSubFolderName - the name of the subdirectory to be created.

All Packages  Class Hierarchy  This Package  Previous  Next  Index