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

com.github.tobato.fastdfs.proto.storage.DownloadByteArray Maven / Gradle / Ivy

There is a newer version: 1.27.2
Show newest version
package com.github.tobato.fastdfs.proto.storage;

import java.io.IOException;
import java.io.InputStream;

import org.apache.commons.io.IOUtils;

/**
 * 下载为byte流
 * 
 * @author tobato
 *
 */
public class DownloadByteArray implements DownloadCallback {

    @Override
    public byte[] recv(InputStream ins) throws IOException {
        return IOUtils.toByteArray(ins);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy