| java.lang.Object org.springframework.mock.web.MockMultipartFile
MockMultipartFile | public MockMultipartFile(String name, byte[] content)(Code) | | Create a new MockMultipartFile with the given content.
Parameters: name - the name of the file Parameters: content - the content of the file |
MockMultipartFile | public MockMultipartFile(String name, InputStream contentStream) throws IOException(Code) | | Create a new MockMultipartFile with the given content.
Parameters: name - the name of the file Parameters: contentStream - the content of the file as stream throws: IOException - if reading from the stream failed |
MockMultipartFile | public MockMultipartFile(String name, String originalFilename, String contentType, byte[] content)(Code) | | Create a new MockMultipartFile with the given content.
Parameters: name - the name of the file Parameters: originalFilename - the original filename (as on the client's machine) Parameters: contentType - the content type (if known) Parameters: content - the content of the file |
MockMultipartFile | public MockMultipartFile(String name, String originalFilename, String contentType, InputStream contentStream) throws IOException(Code) | | Create a new MockMultipartFile with the given content.
Parameters: name - the name of the file Parameters: originalFilename - the original filename (as on the client's machine) Parameters: contentType - the content type (if known) Parameters: contentStream - the content of the file as stream throws: IOException - if reading from the stream failed |
getOriginalFilename | public String getOriginalFilename()(Code) | | |
getSize | public long getSize()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
|
|