Remote Systems
v6.4.1

com.ibm.etools.systems.core.clientserver
Class SystemFileClassifier

java.lang.Object
  extended bycom.ibm.etools.systems.core.clientserver.SystemFileClassifier

public class SystemFileClassifier
extends Object

This singleton class classifies a file on the remote system.


Method Summary
protected  String classifyClassFile(String absolutePath)
          Classifies a class file.
 String classifyFile(String absolutePath)
          Classifies the file with the given absolute path.
protected  String classifyNonVirtual(String absolutePath)
          Classifies a non-virtual file with the given path.
protected  String classifyVirtual(String absolutePath)
          Classifies a virtual file with the given path.
protected  String getClassification(String absolutePath, String line)
          Classifies from the given line of classification output.
static SystemFileClassifier getInstance()
          Returns the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SystemFileClassifier getInstance()
Returns the singleton instance.

Returns:
the singleton instance.

classifyFile

public String classifyFile(String absolutePath)
Classifies the file with the given absolute path. The absolute path can represent a virtual file. By default, returns "file".

Parameters:
absolutePath - the absolute path.
Returns:
the classification.

classifyVirtual

protected String classifyVirtual(String absolutePath)
Classifies a virtual file with the given path.

Parameters:
absolutePath - the absolute path of the virtual file.
Returns:
the classification.

classifyNonVirtual

protected String classifyNonVirtual(String absolutePath)
Classifies a non-virtual file with the given path.

Parameters:
absolutePath - the absolute path of the file.
Returns:
the classification.

getClassification

protected String getClassification(String absolutePath,
                                   String line)
Classifies from the given line of classification output.

Parameters:
absolutePath - the absolute path of the file that was classified.
line - the line of output to parse.
Returns:
the classification.

classifyClassFile

protected String classifyClassFile(String absolutePath)
Classifies a class file.

Parameters:
absolutePath - the absolute path of the class file.
Returns:
the classification.

Remote Systems
v6.4.1

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.