| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.LayerFile
public class LayerFile
The LayerFile coclass is used to read and write layer document files.
When creating a new LayerFile object the ReplaceContents method must be used to set your Layer, as the Layer property is Read-Only. If a new LayerFile is created but no Layer has been set, the IsLayerFile will return False.
| Constructor Summary | |
|---|---|
LayerFile()
Constructs a LayerFile using ArcGIS Engine.  | 
|
LayerFile(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.  LayerFile theLayerFile = (LayerFile) obj; | 
|
| Method Summary | |
|---|---|
 void | 
close()
Close the layer file.  | 
 boolean | 
equals(Object o)
Compare this object with another  | 
 void | 
esri_new(String sFile)
Creates and opens a new layer File in preparation for the contents to be retrieve or updated.  | 
static String | 
getClsid()
getClsid.  | 
 int | 
getDocumentVersion()
The version of the document to save.  | 
 String | 
getFilename()
The name of the layer file that the LayerFile coclass is linked to.  | 
 ILayer | 
getLayer()
The Layer object.  | 
 IPicture | 
getThumbnail()
The thumbnail stored in the layer file.  | 
 int | 
hashCode()
the hashcode for this object  | 
 boolean | 
isLayerFile(String sFile)
Indicates if the file is a valid layer file.  | 
 boolean | 
isPresent(String sFile)
Indicates if the layer file is present.  | 
 boolean | 
isReadOnly(String sFile)
Indicates if the layer file is read only.  | 
 void | 
open(String sFile)
Open the layer file in preparation for the contents to be retrieved or updated.  | 
 void | 
replaceContents(ILayer pLayer)
Replace the contents of the layer file.  | 
 void | 
save()
Save the contents of the layer file to the bound file.  | 
 void | 
saveAs(String sFile)
Save the contents of the layer file to the specified file name.  | 
 void | 
setDocumentVersion(int docVersion)
The version of the document to save.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef | 
|---|
getJintegraDispatch, release | 
| Constructor Detail | 
|---|
public LayerFile()
          throws IOException,
                 UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public LayerFile(Object obj)
          throws IOException
 LayerFile theLayerFile = (LayerFile) obj;
obj to LayerFile.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail | 
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String getFilename()
                   throws IOException,
                          AutomationException
getFilename in interface ILayerFileIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLayerFile(String sFile)
                    throws IOException,
                           AutomationException
isLayerFile in interface ILayerFilesFile - The sFile  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isPresent(String sFile)
                  throws IOException,
                         AutomationException
isPresent in interface ILayerFilesFile - The sFile  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isReadOnly(String sFile)
                   throws IOException,
                          AutomationException
isReadOnly in interface ILayerFilesFile - The sFile  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILayer getLayer()
                throws IOException,
                       AutomationException
getLayer in interface ILayerFileIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPicture getThumbnail()
                      throws IOException,
                             AutomationException
getThumbnail in interface ILayerFileIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void esri_new(String sFile)
              throws IOException,
                     AutomationException
esri_new in interface ILayerFilesFile - The sFile  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void open(String sFile)
          throws IOException,
                 AutomationException
open in interface ILayerFilesFile - The sFile  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void close()
           throws IOException,
                  AutomationException
close in interface ILayerFileIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void replaceContents(ILayer pLayer)
                     throws IOException,
                            AutomationException
replaceContents in interface ILayerFilepLayer - A reference to a com.esri.arcgis.carto.ILayer  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save()
          throws IOException,
                 AutomationException
save in interface ILayerFileIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void saveAs(String sFile)
            throws IOException,
                   AutomationException
saveAs in interface ILayerFilesFile - The sFile  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDocumentVersion(int docVersion)
                        throws IOException,
                               AutomationException
setDocumentVersion in interface IDocumentVersiondocVersion - A com.esri.arcgis.system.esriArcGISVersion constant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDocumentVersion()
                       throws IOException,
                              AutomationException
Determines which version an object is persisted. This can be useful when saving an object ObjectStream or MemoryBlobStream and you want the version of that object to be compatible with previous releases of ArcGIS. Not all persistable objects implement IDocumentVersion; you should ensure the object supports this interface before accessing this property.
getDocumentVersion in interface IDocumentVersionIOException - 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 | ||||||||