info.magnolia.module.blossom.multipart
Class BlossomMultipartFile
java.lang.Object
info.magnolia.module.blossom.multipart.BlossomMultipartFile
- All Implemented Interfaces:
- Serializable, org.springframework.web.multipart.MultipartFile
public class BlossomMultipartFile
- extends Object
- implements org.springframework.web.multipart.MultipartFile, Serializable
Implementation of MultipartFile that acts as an adapter onto Magnolias Document class.
- Since:
- 1.1.1
- See Also:
MultipartFile
,
Document
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlossomMultipartFile
public BlossomMultipartFile(info.magnolia.cms.beans.runtime.Document document)
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 destination)
throws IOException,
IllegalStateException
- Specified by:
transferTo
in interface org.springframework.web.multipart.MultipartFile
- Throws:
IOException
IllegalStateException
Copyright © 2009-2012 Magnolia International Ltd.. All Rights Reserved.