MultipartFile

MultipartFile

package org.springframework.web.multipart;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import org.springframework.core.io.InputStreamSource;

public interface MultipartFile extends InputStreamSource {
    String getName();

    String getOriginalFilename();

    String getContentType();

    boolean isEmpty();

    long getSize();

    byte[] getBytes() throws IOException;

    InputStream getInputStream() throws IOException;

    void transferTo(File arg0) throws IOException, IllegalStateException;
}

 

posted @ 2020-11-02 15:24  西北逍遥  阅读(234)  评论(0编辑  收藏  举报