- java.lang.Object
-
- org.redkale.net.http.MultiPart
-
public final class MultiPart extends Object
详情见: https://redkale.org- 作者:
- zhangjx
-
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 byte[]getContentBytes()byte[]getContentBytes(long max)将文件流读进bytes, 如果超出max指定的值则返回nullStringgetContentType()StringgetFilename()已过时。replace bygetFileName()StringgetFileName()InputStreamgetInputStream()StringgetName()longgetReceived()booleansave(long max, File file)booleansave(long max, OutputStream out)将文件流写进out, 如果超出max指定的值则中断并返回falsebooleansave(File file)booleansave(OutputStream out)voidskip()StringtoString()
-
-
-
方法详细资料
-
save
public boolean save(File file) throws IOException
- 抛出:
IOException
-
save
public boolean save(long max, File file) throws IOException- 抛出:
IOException
-
getContentBytes
public byte[] getContentBytes() throws IOException- 抛出:
IOException
-
getContentBytes
public byte[] getContentBytes(long max) throws IOException将文件流读进bytes, 如果超出max指定的值则返回null- 参数:
max- 最大长度限制- 返回:
- 内容
- 抛出:
IOException- 异常
-
save
public boolean save(OutputStream out) throws IOException
- 抛出:
IOException
-
save
public boolean save(long max, OutputStream out) throws IOException将文件流写进out, 如果超出max指定的值则中断并返回false- 参数:
max- 最大长度限制out- 输出流- 返回:
- 是否成功
- 抛出:
IOException- 异常
-
getContentType
public String getContentType()
-
getFileName
public String getFileName()
-
getFilename
@Deprecated(since="2.8.0") public String getFilename()
已过时。replace bygetFileName()- 返回:
- String
- 另请参阅:
getFileName()
-
getName
public String getName()
-
getInputStream
public InputStream getInputStream()
-
getReceived
public long getReceived()
-
skip
public void skip() throws IOException- 抛出:
IOException
-
-