public class ByteArrayPart extends AbstractPart<byte[]>
charset, contentType, filename, name| 构造器和说明 |
|---|
ByteArrayPart(String name,
byte[] value) |
ByteArrayPart(String name,
byte[] value,
Charset charset) |
ByteArrayPart(String name,
byte[] value,
ContentType contentType) |
ByteArrayPart(String name,
byte[] value,
ContentType contentType,
Charset charset) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getContent() |
int |
getContentLength() |
InputStream |
getContentStream() |
void |
writeTo(Consumer3<byte[],Integer,Integer> consumer) |
getCharset, getContentType, getFilename, getHeaders, getName, setContentId, setDispositionType, setFilename, setHeader, setHeader, setTransferEncoding, toCharsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentTypeHeader, writeTopublic ByteArrayPart(@Nonnull
String name,
@Nonnull
byte[] value)
public ByteArrayPart(@Nonnull
String name,
@Nonnull
byte[] value,
ContentType contentType)
public ByteArrayPart(@Nonnull
String name,
@Nonnull
byte[] value,
ContentType contentType,
Charset charset)
public InputStream getContentStream()
public byte[] getContent()
public int getContentLength()
Copyright © 2024. All rights reserved.