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

edu.pitt.dbmi.data.reader.preview.DataPreviewer Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2019 University of Pittsburgh.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301  USA
 */
package edu.pitt.dbmi.data.reader.preview;

import java.io.IOException;
import java.util.List;

/**
 * Feb 20, 2017 2:07:27 PM
 *
 * @author Kevin V. Bui ([email protected])
 * @version $Id: $Id
 */
public interface DataPreviewer {

    /**
     * Get the previews of the data file.
     *
     * @param fromLine        The starting line number.
     * @param toLine          The ending line number.
     * @param numOfCharacters The number of characters to preview.
     * @return the previews.
     * @throws java.io.IOException if an I/O error occurs.
     */
    List getPreviews(int fromLine, int toLine, int numOfCharacters) throws IOException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy