iSeries Remote Systems
v6.0.0

com.ibm.etools.systems.as400ifsfilesubsys.impl
Class IFSFileImpl

java.lang.Object
  extended bycom.ibm.etools.systems.subsystems.impl.RemoteFileImpl
      extended bycom.ibm.etools.systems.universalfilesubsys.impl.UniversalFileImpl
          extended bycom.ibm.etools.systems.as400ifsfilesubsys.impl.IFSFileImpl
All Implemented Interfaces:
Cloneable, Comparable, IAdaptable, com.ibm.etools.systems.subsystems.IRemoteContainer, com.ibm.etools.systems.subsystems.IRemoteFile, com.ibm.etools.systems.subsystems.IRemoteFileMutable, com.ibm.etools.systems.subsystems.IRemotePropertyHolder, com.ibm.etools.systems.model.ISystemContainer, com.ibm.etools.systems.universal.miners.IUniversalDataStoreConstants

public class IFSFileImpl
extends com.ibm.etools.systems.universalfilesubsys.impl.UniversalFileImpl

Represents a hierarchical file object in any windows or unix like hierarchical file system


Nested Class Summary
 
Nested classes inherited from class com.ibm.etools.systems.universalfilesubsys.impl.UniversalFileImpl
com.ibm.etools.systems.universalfilesubsys.impl.UniversalFileImpl.AttributesListener, com.ibm.etools.systems.universalfilesubsys.impl.UniversalFileImpl.CanWriteListener, com.ibm.etools.systems.universalfilesubsys.impl.UniversalFileImpl.StatusListener
 
Field Summary
protected static String[] ALLDRIVES
           
static String copyright
           
protected  com.ibm.etools.systems.dstore.core.model.DataElement DataElementObj
           
 
Fields inherited from class com.ibm.etools.systems.universalfilesubsys.impl.UniversalFileImpl
attcanWriteRetrieved, attClassificationRetrieved, comment, compressedSize, compressionMethod, compressionRatio, existsRetrieved, expandedSize, isBeingUpdated, sep
 
Fields inherited from class com.ibm.etools.systems.subsystems.impl.RemoteFileImpl
_isStale, BINARY_FALSE, BINARY_TRUE, cacheAbsolutePath, canonicalPath, canRead, canWrite, classification, containingArchiveFullName, contents, context, debugMode, DIRECTORY_FALSE, DIRECTORY_TRUE, exists, fullyQualifiedName, isCached, isContainer, isDirectory, isHidden, isRoot, isVirtualFile, isVirtualFolder, label, lastModified, length, nameOnly, parentFile, pathOnly, properties, propertyStates, remoteObj, ROOT_FALSE, ROOT_TRUE, rootOnly, showReadOnly
 
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteFile
CONNECTION_DELIMITER, ISROOT_NO, ISROOT_YES
 
Fields inherited from interface com.ibm.etools.systems.universal.miners.IUniversalDataStoreConstants
BINARY_MODE, BUFFER_SIZE, C_DOWNLOAD_FILE, C_QUERY_QUALIFIED_CLASSNAME, C_QUERY_UNUSED_PORT, C_SYSTEM_ENCODING, Copyright, DOWNLOAD_RESULT_EXCEPTION, DOWNLOAD_RESULT_FILE_NOT_FOUND_EXCEPTION, DOWNLOAD_RESULT_IO_EXCEPTION, DOWNLOAD_RESULT_SUCCESS_MESSAGE, DOWNLOAD_RESULT_SUCCESS_TYPE, DOWNLOAD_RESULT_UNEXPECTED_ERROR, DOWNLOAD_RESULT_UNSUPPORTED_ENCODING_EXCEPTION, FAILED, FAILED_TO_DELETE_DIR, FAILED_WITH_DOES_NOT_EXIST, FAILED_WITH_EXCEPTION, FAILED_WITH_EXIST, FAILED_WITH_SECURITY, KB_IN_BYTES, MESSAGE_DESCRIPTOR, NUM_OF_KB, SUCCESS, TEXT_MODE, TOKEN_SEPARATOR, TYPE_QUALIFIED_CLASSNAME, UNEXPECTED_ERROR, UNIVERSAL_ARCHIVE_FILE_DESCRIPTOR, UNIVERSAL_FILE_DESCRIPTOR, UNIVERSAL_FILESYSTEM_MINER, UNIVERSAL_FILTER_DESCRIPTOR, UNIVERSAL_FOLDER_DESCRIPTOR, UNIVERSAL_NODE_DESCRIPTOR, UNIVERSAL_TEMP_DESCRIPTOR, UNIVERSAL_VIRTUAL_FILE_DESCRIPTOR, UNIVERSAL_VIRTUAL_FOLDER_DESCRIPTOR, VERSION_1
 
Constructor Summary
IFSFileImpl(com.ibm.etools.systems.subsystems.IRemoteFileContext context, com.ibm.etools.systems.dstore.core.model.DataElement dataElementObj, boolean isRoot)
          Constructor when using the AS/400 Toolbox for Java directly.
IFSFileImpl(com.ibm.etools.systems.subsystems.IRemoteFileContext context, com.ibm.etools.systems.dstore.core.model.DataElement dataElementObj, boolean isRoot, boolean exists)
          Constructor to use when you know the file exists, because you just retrieved it in a list request! More effecient as it saves having to call exists() on the object.
IFSFileImpl(com.ibm.etools.systems.subsystems.IRemoteFileContext context, com.ibm.etools.systems.dstore.core.model.DataElement dataElementObj, boolean isRoot, boolean exists, boolean isDirectory)
          Constructor to use when you know the file exists, because you just retrieved it in a list request, and you even know if it is a directory or not! Most effecient ctor as it saves having to call both exists() and isDirectory() on the object.
 
Method Summary
 String getRoot()
           
 boolean isArchive()
          overriding this to return false - we don't support archives when interfacing IFS files over toolbox
 boolean isRoot()
           
protected  boolean nameIsRoot(String name)
           
 boolean showBriefPropertySet()
          Querying properties for the property sheet can be expensive on some operating systems.
 
Methods inherited from class com.ibm.etools.systems.universalfilesubsys.impl.UniversalFileImpl
canRead, canWrite, compareTo, dispose, getAdapter, getAttributes, getcanWrite, getClassification, getComment, getCompressedSize, getCompressionMethod, getCompressionRatio, getExpandedSize, getLabel, getLastModified, getLastModifiedDate, getLength, getName, getParent, getParentName, getParentNoRoot, getRootPart, init, internalExists, isBeingUpdated, isDataElementDirectory, isHidden, isStale, markStale, setFile, setIsBeingUpdated, setIsDirectory
 
Methods inherited from class com.ibm.etools.systems.subsystems.impl.RemoteFileImpl
containsFilterKey, copyContentsTo, exists, getAbsolutePath, getAbsolutePathPlusConnection, getAllFilterStrings, getCachedCopy, getCanonicalPath, getContainingArchiveFullName, getContents, getContents, getContext, getExtension, getFile, getFileWrapper, getFilterString, getLineSeparator, getLocalAbsolutePath, getParentRemoteFile, getParentRemoteFileSubSystem, getParentRemoteFileSubSystemFactory, getProperties, getProperty, getSeparator, getSeparatorChar, getSystemConnection, hasContents, hasContents, isAncestorOf, isBinary, isDescendantOf, isDirectory, isExecutable, isFile, isLink, isLocal, isPropertyStale, isText, isUnix, isVirtual, isVirtualFile, isVirtualFolder, markAllPropertiesStale, markPropertyStale, replaceContent, setAbsolutePath, setCanRead, setCanWrite, setClassification, setContainingArchiveFullName, setContents, setExists, setFilterString, setIsContainer, setIsHidden, setIsLocal, setLabel, setLastModified, setLength, setLocalAbsolutePath, setName, setNameOnly, setParentRemoteFile, setProperties, setProperty, setVirtualFile, setVirtualFolder, showReadOnlyProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteFile
exists, getAbsolutePath, getAbsolutePathPlusConnection, getAllFilterStrings, getCanonicalPath, getExtension, getFile, getFileWrapper, getFilterString, getLineSeparator, getParentRemoteFile, getParentRemoteFileSubSystem, getSeparator, getSeparatorChar, getSystemConnection, isAncestorOf, isBinary, isDescendantOf, isDirectory, isExecutable, isFile, isLink, isText, isVirtual, setFilterString, showReadOnlyProperty
 
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteContainer
copyContentsTo, getContents, hasContents, replaceContent, setContents
 
Methods inherited from interface com.ibm.etools.systems.model.ISystemContainer
getContents, hasContents
 
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemotePropertyHolder
getProperties, getProperty, isPropertyStale, markAllPropertiesStale, markPropertyStale, setProperties, setProperty
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

DataElementObj

protected com.ibm.etools.systems.dstore.core.model.DataElement DataElementObj

ALLDRIVES

protected static final String[] ALLDRIVES
Constructor Detail

IFSFileImpl

public IFSFileImpl(com.ibm.etools.systems.subsystems.IRemoteFileContext context,
                   com.ibm.etools.systems.dstore.core.model.DataElement dataElementObj,
                   boolean isRoot)
Constructor when using the AS/400 Toolbox for Java directly. If using datastore, use another constructor


IFSFileImpl

public IFSFileImpl(com.ibm.etools.systems.subsystems.IRemoteFileContext context,
                   com.ibm.etools.systems.dstore.core.model.DataElement dataElementObj,
                   boolean isRoot,
                   boolean exists)
Constructor to use when you know the file exists, because you just retrieved it in a list request! More effecient as it saves having to call exists() on the object.


IFSFileImpl

public IFSFileImpl(com.ibm.etools.systems.subsystems.IRemoteFileContext context,
                   com.ibm.etools.systems.dstore.core.model.DataElement dataElementObj,
                   boolean isRoot,
                   boolean exists,
                   boolean isDirectory)
Constructor to use when you know the file exists, because you just retrieved it in a list request, and you even know if it is a directory or not! Most effecient ctor as it saves having to call both exists() and isDirectory() on the object.

Method Detail

showBriefPropertySet

public boolean showBriefPropertySet()
Querying properties for the property sheet can be expensive on some operating systems. By default all properties are shown on the property sheet for this object, unless true is returned from this query, in which only a couple properties are shown.

For IFS files we return true, because it is so very expensive to get these properties.


nameIsRoot

protected boolean nameIsRoot(String name)

isRoot

public boolean isRoot()
See Also:
IRemoteFile.isRoot()

getRoot

public String getRoot()

isArchive

public boolean isArchive()
overriding this to return false - we don't support archives when interfacing IFS files over toolbox


iSeries Remote Systems
v6.0.0

Copyright © 2005 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.