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

io.github.dbstarll.utils.net.api.StreamCallback Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
package io.github.dbstarll.utils.net.api;

import org.apache.hc.core5.http.ContentType;

import java.io.IOException;

public interface StreamCallback {
    /**
     * Triggered to pass incoming data packet to the data consumer.
     *
     * @param contentType ContentType
     * @param endOfStream 数据流是否结束
     * @param result      the data packet.
     * @throws IOException in case of a problem or the connection was aborted
     */
    void stream(ContentType contentType, boolean endOfStream, T result) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy