Files
2026-11-21 17:07:18 -05:00

62 lines
1.3 KiB
Java

/* */ package kong.unirest.cosmetics;
/* */
/* */ import java.io.File;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class FilePart
/* */ extends BodyPart<File>
/* */ {
/* */ private String fileName;
/* */
/* */ public FilePart(File file, String name) {
/* 34 */ this(file, name, null);
/* */ }
/* */
/* */ public FilePart(File file, String name, String contentType) {
/* 38 */ super(file, name, contentType);
/* 39 */ this.fileName = file.getName();
/* */ }
/* */
/* */
/* */ public boolean isFile() {
/* 44 */ return true;
/* */ }
/* */
/* */
/* */ public String getFileName() {
/* 49 */ return this.fileName;
/* */ }
/* */
/* */
/* */ public String toString() {
/* 54 */ return String.format("%s=%s", new Object[] { getName(), this.fileName });
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\kon\\unirest\cosmetics\FilePart.class
* Java compiler version: 11 (55.0)
* JD-Core Version: 1.1.3
*/