cz.dhl.io
Class CoSort

java.lang.Object
  extended bycz.dhl.io.CoSort

public class CoSort
extends java.lang.Object

Orders, filters and splits arrays of CoFile objects.

Version:
0.72 08/10/2003
Author:
Bea Petrovicova
See Also:
CoFile

Field Summary
static int ORDER_BY_DATE
          Order Option - Order by date.
static int ORDER_BY_NAME
          Order Option - Order by name.
static int ORDER_BY_NONE
          Order Option - Skip ordering.
static int ORDER_BY_PATH
          Order Option - Order by Path.
static int ORDER_BY_SIZE
          Order Option - Order by size.
static int ORDER_BY_TYPE
          Order Option - Order by extension.
static int ORDER_INVERSE
          Order Flag - Inverse flag.
 
Method Summary
static CoFile[] listFilter(CoFile[] list, java.lang.String[] filter)
          Returns an array of abstract pathnames filtered by specified filter list.
static CoFile[] listOrder(CoFile[] list, int sorttype)
          Returns an array of abstract pathnames ordered by specified sorttype.
static CoFile[] listSplit(CoFile[] list)
          Returns an array of abstract pathnames splited to directory and file part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORDER_BY_DATE

public static final int ORDER_BY_DATE
Order Option - Order by date.

See Also:
Constant Field Values

ORDER_BY_NAME

public static final int ORDER_BY_NAME
Order Option - Order by name.

See Also:
Constant Field Values

ORDER_BY_NONE

public static final int ORDER_BY_NONE
Order Option - Skip ordering.

See Also:
Constant Field Values

ORDER_BY_PATH

public static final int ORDER_BY_PATH
Order Option - Order by Path.

See Also:
Constant Field Values

ORDER_BY_SIZE

public static final int ORDER_BY_SIZE
Order Option - Order by size.

See Also:
Constant Field Values

ORDER_BY_TYPE

public static final int ORDER_BY_TYPE
Order Option - Order by extension.

See Also:
Constant Field Values

ORDER_INVERSE

public static final int ORDER_INVERSE
Order Flag - Inverse flag.

See Also:
Constant Field Values
Method Detail

listFilter

public static CoFile[] listFilter(CoFile[] list,
                                  java.lang.String[] filter)
Returns an array of abstract pathnames filtered by specified filter list.


listOrder

public static CoFile[] listOrder(CoFile[] list,
                                 int sorttype)
Returns an array of abstract pathnames ordered by specified sorttype.


listSplit

public static CoFile[] listSplit(CoFile[] list)
Returns an array of abstract pathnames splited to directory and file part.



Available from sourceforge http://sourceforge.net/projects/jvftp under the terms of GNU Lesser General Public License (LGPL).