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

org.seedstack.io.Parser Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
/**
 * Copyright (c) 2013-2015, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.io;

import java.io.InputStream;
import java.util.List;

/**
 * Parser provide a method to parse object from an InputStream.
 *
 * @param  parsed object
 * @author [email protected]
 *         Date: 24/03/14
 */
public interface Parser {

    /**
     * Parses an InputStream and retrieves object.
     *
     * @param inputStream input stream
     * @param clazz       parsed object
     * @return list of T
     */
    List parse(InputStream inputStream, Class clazz);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy