coorder.java

来自「用java实现的摄像头编程」· Java 代码 · 共 56 行

JAVA
56
字号
/*
 * Version 0.70 01/04/2002
 *
 * Visit my url for update: http://www.geocities.com/beapetrovicova/
 *
 * jFtp was developed by Bea Petrovicova <beapetrovicova@yahoo.com>.
 * The design and implementation of jFtp are available for royalty-free 
 * adoption and use. This software is provided 'as is' without any 
 * guarantees. Copyright is retained by Bea Petrovicova. Redistribution 
 * of any part of jFtp or any derivative works must include this notice.
 * 
 */  

package cz.dhl.io;

/**
 * Allows to compare CoFile objects.
 * 
 * @Version 0.70 01/04/2002
 * @author Bea Petrovicova <beapetrovicova@yahoo.com>  
 * @see cz.dhl.io.CoFile
 */
public interface CoOrder 
   /* Emulation for Java v1.0 and v1.1 = Remove Comparable! */
   extends Comparable
{   
   /** Compares two abstract pathnames lexicographically by name. 
    * @exception ClassCastException */
   public int compareNameToIgnoreCase(CoOrder file);
   
   /** Compares two abstract pathnames lexicographically by extension. 
    * @exception ClassCastException */
   public int compareExtToIgnoreCase(CoOrder file);

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

   /** Tests this abstract pathname for equality with the given extension.
    * @parameter filter must be uppercase string with a leading '.' sign; 
    * example: ".TXT" or ".HTM" or ".HTML" etc ... */
   public boolean equalsExtTo(String filter);

   /** Tests this abstract pathname for equality with one of the given extensions.
    * @parameter filter must be array of uppercase strings with a leading '.' sign; 
    * example: { ".TXT", ".HTM", ".HTML", etc ... } */
   public boolean equalsExtTo(String filter[]);

   /** Compares two abstract pathnames lexicographically (by pathname). */
   public int compareTo(Object o);

   /** Tests if corresponding connection to remote host is active. */
   public boolean isConnected();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?