Package helma.util

Class MimePartDataSource

  • All Implemented Interfaces:
    javax.activation.DataSource

    public class MimePartDataSource
    extends java.lang.Object
    implements javax.activation.DataSource
    Makes MimeParts usable as Datasources in the Java Activation Framework (JAF)
    • Constructor Detail

      • MimePartDataSource

        public MimePartDataSource​(MimePart part)
        Creates a new MimePartDataSource object.
        Parameters:
        part - ...
      • MimePartDataSource

        public MimePartDataSource​(MimePart part,
                                  java.lang.String name)
        Creates a new MimePartDataSource object.
        Parameters:
        part - ...
        name - ...
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface javax.activation.DataSource
        Returns:
        ...
        Throws:
        java.io.IOException - ...
      • getOutputStream

        public java.io.OutputStream getOutputStream()
                                             throws java.io.IOException
        Specified by:
        getOutputStream in interface javax.activation.DataSource
        Returns:
        ...
        Throws:
        java.io.IOException - ...
      • getContentType

        public java.lang.String getContentType()
        Specified by:
        getContentType in interface javax.activation.DataSource
        Returns:
        ...
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface javax.activation.DataSource
        Returns:
        ...