57 lines
1.2 KiB
Java
57 lines
1.2 KiB
Java
/* */ package kong.unirest.cosmetics;
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */
|
|
/* */ public class ByteArrayPart
|
|
/* */ extends BodyPart<byte[]>
|
|
/* */ {
|
|
/* */ private final String fileName;
|
|
/* */
|
|
/* */ ByteArrayPart(String name, byte[] bytes, ContentType contentType, String fileName) {
|
|
/* 33 */ super(bytes, name, contentType.toString());
|
|
/* 34 */ this.fileName = fileName;
|
|
/* */ }
|
|
/* */
|
|
/* */
|
|
/* */ public String getFileName() {
|
|
/* 39 */ return this.fileName;
|
|
/* */ }
|
|
/* */
|
|
/* */
|
|
/* */ public boolean isFile() {
|
|
/* 44 */ return true;
|
|
/* */ }
|
|
/* */
|
|
/* */
|
|
/* */ public String toString() {
|
|
/* 49 */ return String.format("%s=%s", new Object[] { getName(), this.fileName });
|
|
/* */ }
|
|
/* */ }
|
|
|
|
|
|
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\kon\\unirest\cosmetics\ByteArrayPart.class
|
|
* Java compiler version: 11 (55.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |