Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.services.ifs.files
Class IFSHostFile

java.lang.Object
  extended by com.ibm.etools.iseries.services.ifs.files.IFSHostFile

public class IFSHostFile
extends Object

IHostFile implementation for IFS file.


Field Summary
protected static String[] ALLDRIVES
           
static String copyright
           
 
Constructor Summary
IFSHostFile(IFSFile file, IToolboxSessionProvider sessionProvider)
          Create an IFSHostFile.
IFSHostFile(IToolboxSessionProvider sessionProvider, String absoluteFilePath)
          Create an IFSHostFile.
 
Method Summary
 boolean canRead()
           
 boolean canWrite()
           
 boolean exists()
           
 String getAbsolutePath()
           
 String getCanonicalPath()
          Return canonical path.
 String getCCSID()
           
 long getModifiedDate()
           
 String getName()
           
 String getParentName()
           
 String getParentPath()
           
 String getSeparator()
          Return separator.
 IToolboxSessionProvider getSessionProvider()
           
 long getSize()
           
 AS400 getSystem()
           
 boolean isArchive()
           
 boolean isDirectory()
           
 boolean isFile()
           
 boolean isHidden()
           
 boolean isRoot()
           
 IFSHostFile[] listFiles()
           
protected  boolean nameIsRoot(String name)
          Return true if name matches the root naming pattern.
 void renameTo(String newAbsolutePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright

ALLDRIVES

protected static final String[] ALLDRIVES
Constructor Detail

IFSHostFile

public IFSHostFile(IToolboxSessionProvider sessionProvider,
                   String absoluteFilePath)
Create an IFSHostFile.

Parameters:
as400: - an AS400 object.
absoluteFilePath: - the absolute file name.

IFSHostFile

public IFSHostFile(IFSFile file,
                   IToolboxSessionProvider sessionProvider)
Create an IFSHostFile.

Parameters:
file: - an IFSFile object.
Method Detail

canRead

public boolean canRead()

canWrite

public boolean canWrite()

exists

public boolean exists()

getAbsolutePath

public String getAbsolutePath()

getModifiedDate

public long getModifiedDate()

getName

public String getName()

getParentPath

public String getParentPath()

getSize

public long getSize()

isArchive

public boolean isArchive()

isDirectory

public boolean isDirectory()

isFile

public boolean isFile()

isHidden

public boolean isHidden()

isRoot

public boolean isRoot()

nameIsRoot

protected boolean nameIsRoot(String name)
Return true if name matches the root naming pattern. False otherwise.

Parameters:
name: - name of the file.

renameTo

public void renameTo(String newAbsolutePath)

getCanonicalPath

public String getCanonicalPath()
Return canonical path.


getSeparator

public String getSeparator()
Return separator.


getCCSID

public String getCCSID()

getParentName

public String getParentName()

listFiles

public IFSHostFile[] listFiles()
                        throws IOException
Throws:
IOException

getSystem

public AS400 getSystem()

getSessionProvider

public IToolboxSessionProvider getSessionProvider()

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.