public class FileItem extends Object
public FileItem(File file)
file - 本地文件public FileItem(String filePath)
filePath - 文件绝对路径public FileItem(String fileName, byte[] content)
fileName - 文件名content - 文件字节流public String getFileName()
public String getMimeType() throws IOException
IOExceptionpublic byte[] getContent()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.