com.esri.arcgis.system
Interface IFileName

All Superinterfaces:
Serializable
All Known Implementing Classes:
FileName, ShortcutName

public interface IFileName
extends Serializable

Provides access to the pathnames of files.

Description

The IFileName interface provides a method to identfiy some data without it necessarily having to exist in a directory structure.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 String getPath()
          Pathname to the file.
 void setPath(String path)
          Pathname to the file.
 

Method Detail

setPath

void setPath(String path)
             throws IOException,
                    AutomationException
Pathname to the file.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
path - The path (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPath

String getPath()
               throws IOException,
                      AutomationException
Pathname to the file.

Description

The Path to the file. The data specified by the Path does not necessarily have to exist in a directory structure.

Remarks

When using a FileName, the IName::Open method does not function properly, so you need to use whatever programmatic file-access technique is appropriate from your
development environment standpoint.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The path
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.