com.clickntap.tool.types
Class HttpFile
java.lang.Object
com.clickntap.tool.types.HttpFile
- All Implemented Interfaces:
- org.springframework.web.multipart.MultipartFile
public class HttpFile
- extends Object
- implements org.springframework.web.multipart.MultipartFile
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpFile
public HttpFile(String url)
throws IOException
- Throws:
IOException
HttpFile
public HttpFile(URL url)
throws IOException
- Throws:
IOException
getBytes
public byte[] getBytes()
throws IOException
- Specified by:
getBytes in interface org.springframework.web.multipart.MultipartFile
- Throws:
IOException
getContentType
public String getContentType()
- Specified by:
getContentType in interface org.springframework.web.multipart.MultipartFile
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in interface org.springframework.web.multipart.MultipartFile
- Throws:
IOException
getName
public String getName()
- Specified by:
getName in interface org.springframework.web.multipart.MultipartFile
getOriginalFilename
public String getOriginalFilename()
- Specified by:
getOriginalFilename in interface org.springframework.web.multipart.MultipartFile
getSize
public long getSize()
- Specified by:
getSize in interface org.springframework.web.multipart.MultipartFile
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface org.springframework.web.multipart.MultipartFile
transferTo
public void transferTo(File arg0)
throws IOException,
IllegalStateException
- Specified by:
transferTo in interface org.springframework.web.multipart.MultipartFile
- Throws:
IOException
IllegalStateException
Copyright © 2014. All rights reserved.