FileParser2 介面

本節提供 Java 類別使用之 FileParser2 介面的原始程式碼,此類別隨附於本節先前所述的 Java 套件中。我們已新增此介面,以便讓「檔案處理器」用來擷取可能儲存在傳入檔案中的檔案建立日期。


package com.splwg.d1.sgg.osb.common;
import java.util.Date;
public interface FileParser2 extends FileParser {
    /** 
     * FileProcessor usage method
     * Returns the File creation date and time stamp stored 
     * in the file
     * Returns null if information not available 
     */
    Date getCreationDateTime();
}