ariba.util.core
Interface MIMESource


public interface MIMESource

This interface provides the abstraction of MIME data source. It provides a content type for that data source as well as access to it in the form of InputStream.


Method Summary
 java.lang.String getContentType()
          This method returns the MIME type of the data in the form of a string.
 java.io.InputStream getInputStream()
          This method returns an InputStream representing the the data and will throw the appropriate exception if it cannot do so.
 

Method Detail

getContentType

java.lang.String getContentType()
This method returns the MIME type of the data in the form of a string. It is suggested that getContentType could return MIME.ContentTypeApplicationOctetStream ("application/octet-stream") if the MIMESource implementation can not determine the data type.

Returns:
the MIME Type

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
This method returns an InputStream representing the the data and will throw the appropriate exception if it cannot do so.

Returns:
an InputStream
Throws:
java.io.IOException


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.