Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Attributes | Package Attributes | Static Package Attributes
rene.util.SortFile Class Reference
Inheritance diagram for rene.util.SortFile:
Inheritance graph
Collaboration diagram for rene.util.SortFile:
Collaboration graph

List of all members.

Public Member Functions

 SortFile (File dir, String name)
int compare (SortObject o)

Static Public Attributes

final static int NAME = 0

Package Attributes

String S

Static Package Attributes

static int SortBy = 0
final static int DATE = 1

Detailed Description

Definition at line 11 of file

Constructor & Destructor Documentation

rene.util.SortFile.SortFile ( File  dir,
String  name 
) [inline]

Definition at line 16 of file

       {      super(dir,name);
              {      S=getCanonicalPath().toUpperCase();
              catch (Exception e)
              { S=""; }

Here is the caller graph for this function:

Member Function Documentation

Implements rene.util.sort.SortObject.

Definition at line 24 of file

       {      SortFile f=(SortFile)o;
              if (SortBy==DATE)
              {      long n=f.lastModified();
                     long m=lastModified();
                     if (n<m) return -1;
                     if (n>m) return 1;
                     return 0;
              return -f.S.compareTo(S);

Here is the call graph for this function:

Member Data Documentation

final static int rene.util.SortFile.DATE = 1 [static, package]

Definition at line 15 of file

final static int rene.util.SortFile.NAME = 0 [static]

Definition at line 15 of file

String rene.util.SortFile.S [package]

Definition at line 13 of file

int rene.util.SortFile.SortBy = 0 [static, package]

Definition at line 14 of file

The documentation for this class was generated from the following file: