public class SlingMultipartFile extends Object implements org.springframework.web.multipart.MultipartFile
SlingHttpServletRequest
RequestParameter
API
to provide a MultipartFile
.Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
String |
getOriginalFilename() |
long |
getSize() |
boolean |
isEmpty() |
void |
transferTo(File dest) |
@Nonnull public String getName()
getName
in interface org.springframework.web.multipart.MultipartFile
public String getOriginalFilename()
getOriginalFilename
in interface org.springframework.web.multipart.MultipartFile
public String getContentType()
getContentType
in interface org.springframework.web.multipart.MultipartFile
public boolean isEmpty()
isEmpty
in interface org.springframework.web.multipart.MultipartFile
public long getSize()
getSize
in interface org.springframework.web.multipart.MultipartFile
@Nonnull public byte[] getBytes()
getBytes
in interface org.springframework.web.multipart.MultipartFile
public InputStream getInputStream() throws IOException
getInputStream
in interface org.springframework.core.io.InputStreamSource
getInputStream
in interface org.springframework.web.multipart.MultipartFile
IOException
public void transferTo(File dest) throws IOException, IllegalStateException
transferTo
in interface org.springframework.web.multipart.MultipartFile
IOException
IllegalStateException
Copyright © 2024. All rights reserved.