Allows to compare CoFile objects.
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 |
public int compareExtToIgnoreCase(CoOrder file)
java.lang.ClassCastException
public int compareNameToIgnoreCase(CoOrder file)
java.lang.ClassCastException
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equalsExtTo(java.lang.String filter)
filter
- must be uppercase string with a leading '.' sign;
example: ".TXT" or ".HTM" or ".HTML" etc ...public boolean equalsExtTo(java.lang.String[] filter)
filter
- must be array of uppercase strings with a leading '.' sign;
example: { ".TXT", ".HTM", ".HTML", etc ... }public boolean isConnected()
public boolean startsWithIgnoreCase(char ch)