RSE
Release 3.2

org.eclipse.rse.services.clientserver
Class SystemFileClassifier

java.lang.Object
  extended by org.eclipse.rse.services.clientserver.SystemFileClassifier

public class SystemFileClassifier
extends java.lang.Object

This singleton class classifies a file on the remote system.


Method Summary
protected  java.lang.String classifyClassFile(java.lang.String absolutePath)
          Classifies a class file.
 java.lang.String classifyFile(java.lang.String absolutePath)
          Classifies the file with the given absolute path.
protected  java.lang.String classifyNonVirtual(java.lang.String absolutePath)
          Classifies a non-virtual file with the given path.
protected  java.lang.String classifyVirtual(java.lang.String absolutePath)
          Classifies a virtual file with the given path.
protected  java.lang.String getClassification(java.lang.String absolutePath, java.lang.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 java.lang.String classifyFile(java.lang.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 java.lang.String classifyVirtual(java.lang.String absolutePath)
Classifies a virtual file with the given path.

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

classifyNonVirtual

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

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

getClassification

protected java.lang.String getClassification(java.lang.String absolutePath,
                                             java.lang.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 java.lang.String classifyClassFile(java.lang.String absolutePath)
Classifies a class file.

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

RSE
Release 3.2

Copyright (c) IBM Corporation and others 2000, 2010. All Rights Reserved.