|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFileNames
Provides access to members that control an array of filenames.
IFileNames offers only sequential access to the array. The file names are added to the array as full paths strings. The paths can refer to folders as well as files.
Method Summary | |
---|---|
void |
add(String fileName)
Adds a filename to the array. |
boolean |
isDirectory()
Indicates if the current filename is a directory. |
String |
next()
Obtains the next filename in the array. |
void |
remove()
Removes the current filename from the array. |
void |
reset()
Resets the current position back to the beginning of the array. |
Method Detail |
---|
void add(String fileName) throws IOException, AutomationException
The Add method adds the specified file name to the end of the array as a full path string. The path can refer to a directory or a file. Use the IsDirectory method to determine with the path specifies a directory or file.
fileName
- The fileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void remove() throws IOException, AutomationException
Removes the current file name in the array from the array.
The Remove method cannot be called right after the Reset method. First point to an element in array by calling the Next method, and the Remove method can be used after that.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void reset() throws IOException, AutomationException
The Reset method resets the array so that the next call to the Next method returns the first file name in the array.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String next() throws IOException, AutomationException
Returns the current file name in the array as a full path string.
The Next method will return a zero-length string when it reaches the end of the array. Use the Reset method to go back to the beginning of the array to gain sequential access to the file names.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isDirectory() throws IOException, AutomationException
Indicates whether the current file name in the array is a directory or a file.
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 |