com.aspose.html.net

Class MultipartContent

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Content>, com.aspose.ms.System.Collections.IEnumerable<Content>, com.aspose.ms.System.IDisposable, java.lang.Iterable<Content>
    Direct Known Subclasses:
    MultipartFormDataContent


    public class MultipartContent
    extends Content
    implements com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Content>

    Represents a multipart/* content.

    See Also:
    Content
    • Constructor Detail

      • MultipartContent

        public MultipartContent()

        Create a new instance of the MultipartContent class.

      • MultipartContent

        public MultipartContent(java.lang.String subtype)

        Create a new instance of the MultipartContent class with subtype.

        Parameters:
        subtype - The subtype
      • MultipartContent

        public MultipartContent(java.lang.String subtype,
                                java.lang.String boundary)

        Create a new instance of the MultipartContent class with subtype and boundary.

        Parameters:
        subtype - The subtype
        boundary - The boundary
        Throws:
        com.aspose.ms.System.ArgumentException - The argument cannot be null or empty string.
    • Method Detail

      • dispose

        protected void dispose(boolean disposing)

        Releases unmanaged and - optionally - managed resources.

        Overrides:
        dispose in class Content
        Parameters:
        disposing - true to release both managed and unmanaged resources; false to release only unmanaged resources.
      • iterator

        public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Content> iterator()

        Returns an enumerator that iterates through a collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Content>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<Content>
        Specified by:
        iterator in interface java.lang.Iterable<Content>
        Returns:
        An IEnumerator object that can be used to iterate through the collection.
      • iterator_Rename_Namesake

        public com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()

        Gets the enumerator.

        Returns:
      • serializeToStream

        protected void serializeToStream(com.aspose.ms.System.IO.Stream stream)

        Serializes to stream.

        Specified by:
        serializeToStream in class Content
        Parameters:
        stream - The stream.