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
-
Folder()
- Creates a folder bucket with no contents.
-
Folder(String)
- Creates a folder bucket with the list of file names of the folder.
-
Folder(String, String)
- Creates a folder bucket with the filtered list of file names of the
folder.
-
getName()
- Gets the name of the folder.
-
makeSubFolder(String)
- Mekes the folder.
-
open(String)
- Open the folder.
-
putFileName(String)
- Puts the file name in the folder bucket.
-
rename(String)
- Renames the folder.
-
setName(String)
- Sets the name of the folder.
-
writeFile(String, byte[])
- Writes the file to the folder.
Folder
public Folder()
- Creates a folder bucket with no contents.
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.
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.
setName
public void setName(String aName)
- Sets the name of the folder.
- Parameters:
- aName - the name of the folder.
getName
public String getName()
- Gets the name of the folder.
- Returns:
- the name of the folder.
open
public void open(String aName)
- Open the folder.
- Parameters:
- aName - the name of the folder.
- Overrides:
- open in class FolderBucket
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.
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.
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.
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