org.jasig.portal
Class MultipartDataSource
java.lang.Object
org.jasig.portal.MultipartDataSource
- All Implemented Interfaces:
- javax.activation.DataSource
- public class MultipartDataSource
- extends java.lang.Object
- implements javax.activation.DataSource
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultipartDataSource
public MultipartDataSource(com.oreilly.servlet.multipart.FilePart filePart)
throws java.io.IOException
MultipartDataSource
public MultipartDataSource(java.lang.String fileName,
java.lang.String errorMessage)
isAvailable
public boolean isAvailable()
finalize
public void finalize()
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream
in interface javax.activation.DataSource
- Throws:
java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Specified by:
getOutputStream
in interface javax.activation.DataSource
- Throws:
java.io.IOException
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interface javax.activation.DataSource
getName
public java.lang.String getName()
- Specified by:
getName
in interface javax.activation.DataSource
getErrorMessage
public java.lang.String getErrorMessage()
getFile
public java.io.File getFile()
throws java.lang.Exception
- Throws:
java.lang.Exception
setFileTypeMap
public void setFileTypeMap(javax.activation.FileTypeMap p0)
throws java.lang.Exception
- Throws:
java.lang.Exception