Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.services.clientserver
Class SystemFileClassifier


java.lang.Object
  extended by 
org.eclipse.rse.services.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.

RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire