org.eclipse.rse.services.clientserver
Class SystemFileClassifier
java.lang.Object
org.eclipse.rse.services.clientserver.SystemFileClassifier
-
public class SystemFileClassifier
- extends
Object
This singleton class classifies a file on the remote system.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
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.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.