com.atlassian.confluence.core
Class UploadedResource
java.lang.Object
org.springframework.core.io.AbstractResource
com.atlassian.confluence.core.UploadedResource
- All Implemented Interfaces:
- org.springframework.core.io.InputStreamSource, org.springframework.core.io.Resource
public class UploadedResource
- extends org.springframework.core.io.AbstractResource
Resource wrapper for uploaded files. This will become extra handy once we get a better multipart file handling
e.g. Attachments handled entirely in memory
Constructor Summary |
UploadedResource(com.atlassian.xwork.FileUploadUtils.UploadedFile uploadedFile)
|
Methods inherited from class org.springframework.core.io.AbstractResource |
createRelative, equals, exists, getURL, hashCode, isOpen, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
UploadedResource
public UploadedResource(com.atlassian.xwork.FileUploadUtils.UploadedFile uploadedFile)
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface org.springframework.core.io.Resource
- Specified by:
getDescription
in class org.springframework.core.io.AbstractResource
getFile
public java.io.File getFile()
throws java.io.IOException
- Specified by:
getFile
in interface org.springframework.core.io.Resource
- Overrides:
getFile
in class org.springframework.core.io.AbstractResource
- Throws:
java.io.IOException
getFilename
public java.lang.String getFilename()
throws java.lang.IllegalStateException
- Specified by:
getFilename
in interface org.springframework.core.io.Resource
- Overrides:
getFilename
in class org.springframework.core.io.AbstractResource
- Throws:
java.lang.IllegalStateException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getContentType
public java.lang.String getContentType()
getContentLength
public long getContentLength()
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.