uPortal 2.4.1
API Documentation

org.jasig.portal
Class MultipartDataSource

java.lang.Object
  extended byorg.jasig.portal.MultipartDataSource
All Implemented Interfaces:
javax.activation.DataSource

public class MultipartDataSource
extends java.lang.Object
implements javax.activation.DataSource


Constructor Summary
MultipartDataSource(com.oreilly.servlet.multipart.FilePart filePart)
           
MultipartDataSource(java.lang.String fileName, java.lang.String errorMessage)
           
 
Method Summary
 void finalize()
           
 java.lang.String getContentType()
           
 java.lang.String getErrorMessage()
           
 java.io.File getFile()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getName()
           
 java.io.OutputStream getOutputStream()
           
 boolean isAvailable()
           
 void setFileTypeMap(javax.activation.FileTypeMap p0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartDataSource

public MultipartDataSource(com.oreilly.servlet.multipart.FilePart filePart)
                    throws java.io.IOException

MultipartDataSource

public MultipartDataSource(java.lang.String fileName,
                           java.lang.String errorMessage)
Method Detail

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

uPortal 2.4.1
API Documentation