All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alipay.rdf.file.interfaces.FileReader Maven / Gradle / Ivy

There is a newer version: 2.2.11
Show newest version
package com.alipay.rdf.file.interfaces;

import com.alipay.rdf.file.model.Summary;

/**
 * Copyright (C) 2013-2018 Ant Financial Services Group
 * 
 * 文件读取接口
 * 
 * @author hongwei.quhw
 * @version $Id: FileReader.java, v 0.1 2016-12-20 下午4:46:49 hongwei.quhw Exp $
 */
public interface FileReader {
    /**
     * 读取头信息, 返回指定对象
     */
     T readHead(Class requiredType);

    /**
     * 读取文件行记录 , 返回指定对象
     */
     T readRow(Class requiredType);

    /**
     * 读取文件尾
     */
     T readTail(Class requiredType);

    /**
     * 读取一行记录
     */
    String readLine();

    /**
     * 获取汇总字段 
     */
    Summary getSummary();

    /**
     * 关闭流
     */
    void close();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy