1 16 package net.jforum.util.legacy.commons.fileupload; 17 18 import java.io.File ; 19 20 import net.jforum.util.legacy.commons.fileupload.disk.DiskFileItemFactory; 21 22 46 public class DefaultFileItemFactory extends DiskFileItemFactory { 47 48 50 51 57 public DefaultFileItemFactory() { 58 super(); 59 } 60 61 62 74 public DefaultFileItemFactory(int sizeThreshold, File repository) { 75 super(sizeThreshold, repository); 76 } 77 78 79 81 97 public FileItem createItem( 98 String fieldName, 99 String contentType, 100 boolean isFormField, 101 String fileName 102 ) { 103 return new DefaultFileItem(fieldName, contentType, 104 isFormField, fileName, getSizeThreshold(), getRepository()); 105 } 106 107 } 108 | Popular Tags |