cz.dhl.io
Interface CoOrder

All Superinterfaces:
CoComparable, java.lang.Comparable
All Known Subinterfaces:
CoFile
All Known Implementing Classes:
FtpFile, LocalFile

public interface CoOrder
extends CoComparable

Allows to compare CoFile objects.

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

Method Summary
 int compareExtToIgnoreCase(CoOrder file)
          Compares two abstract pathnames lexicographically by extension.
 int compareNameToIgnoreCase(CoOrder file)
          Compares two abstract pathnames lexicographically by name.
 int compareTo(java.lang.Object o)
          Compares two abstract pathnames lexicographically (by pathname).
 boolean equalsExtTo(java.lang.String filter)
          Tests this abstract pathname for equality with the given extension.
 boolean equalsExtTo(java.lang.String[] filter)
          Tests this abstract pathname for equality with one of the given extensions.
 boolean isConnected()
          Tests if corresponding connection to remote host is active.
 boolean startsWithIgnoreCase(char ch)
          Tests this abstract pathname whether name starts with the given character.
 

Method Detail

compareExtToIgnoreCase

public int compareExtToIgnoreCase(CoOrder file)
Compares two abstract pathnames lexicographically by extension.

Throws:
java.lang.ClassCastException

compareNameToIgnoreCase

public int compareNameToIgnoreCase(CoOrder file)
Compares two abstract pathnames lexicographically by name.

Throws:
java.lang.ClassCastException

compareTo

public int compareTo(java.lang.Object o)
Compares two abstract pathnames lexicographically (by pathname).

Specified by:
compareTo in interface java.lang.Comparable

equalsExtTo

public boolean equalsExtTo(java.lang.String filter)
Tests this abstract pathname for equality with the given extension.

Parameters:
filter - must be uppercase string with a leading '.' sign; example: ".TXT" or ".HTM" or ".HTML" etc ...

equalsExtTo

public boolean equalsExtTo(java.lang.String[] filter)
Tests this abstract pathname for equality with one of the given extensions.

Parameters:
filter - must be array of uppercase strings with a leading '.' sign; example: { ".TXT", ".HTM", ".HTML", etc ... }

isConnected

public boolean isConnected()
Tests if corresponding connection to remote host is active.


startsWithIgnoreCase

public boolean startsWithIgnoreCase(char ch)
Tests this abstract pathname whether name starts with the given character.



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