|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFileNames2
Provides access to retrieve subsets based on extension.
The IFileNames2 interface provides advanced file-specific array methods.
| Method Summary | |
|---|---|
boolean |
find(String fileName)
Advances the current postion to the specified file if it exists. |
String |
getContainedExtensions()
Obtains a delimited set of extensions contained within the collection. |
IFileNames |
getSubset(String extSet)
Obtains a subset based on a delimited set of extensions. |
void |
loadFromPath(String path)
Loads the collection with files from the specified path. |
| Method Detail |
|---|
void loadFromPath(String path)
throws IOException,
AutomationException
The LoadFromPath method adds any file names to the array (both directories and files) that are found in the specified directory path.
path - The path (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IFileNames getSubset(String extSet)
throws IOException,
AutomationException
The GetSubset method returns a FileNames object consisting of a subset of the file names in the array that have the specified extension.
extSet - The extSet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getContainedExtensions()
throws IOException,
AutomationException
The GetContainedExtensions method returns a delimited string containing the file name extensions within the array. For example, "txt|shp".
If the array contains a file name which is a directory, "<dir>" is returned. For example, "txt|<dir>|shp". Use the IFileNames::IsDirectory method to determine if a file name is a directory or a file.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean find(String fileName)
throws IOException,
AutomationException
Indicates whether the specified file name exists in the array.
If the array contains a file name which is a directory path, the Find method returns False (not found) if the directory path was passed to be searched. The Find method searches only for files.
fileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||