public class MultipartContent extends Content implements com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Content>
Represents a multipart/* content.
Content
DEFAULT_HTTP_ENCODING, DEFAULT_STRING_ENCODING
Constructor and Description |
---|
MultipartContent()
Create a new instance of the
MultipartContent class. |
MultipartContent(java.lang.String subtype)
Create a new instance of the
MultipartContent class with subtype. |
MultipartContent(java.lang.String subtype,
java.lang.String boundary)
Create a new instance of the
MultipartContent class with subtype and boundary. |
Modifier and Type | Method and Description |
---|---|
void |
add(Content content)
Add a new content to the
MultipartContent
|
protected void |
dispose(boolean disposing)
Releases unmanaged and - optionally - managed resources.
|
com.aspose.ms.System.Collections.IEnumerator |
iterator_Rename_Namesake()
Gets the enumerator.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Content> |
iterator()
Returns an enumerator that iterates through a collection.
|
protected void |
serializeToStream(com.aspose.ms.System.IO.Stream stream)
Serializes to stream.
|
dispose, getHeaders, readAsByteArray, readAsStream, readAsString
public MultipartContent()
Create a new instance of the MultipartContent
class.
public MultipartContent(java.lang.String subtype)
Create a new instance of the MultipartContent
class with subtype.
subtype
- The subtypepublic MultipartContent(java.lang.String subtype, java.lang.String boundary)
Create a new instance of the MultipartContent
class with subtype and boundary.
subtype
- The subtypeboundary
- The boundarycom.aspose.ms.System.ArgumentException
- The argument cannot be null or empty string.public void add(Content content)
Add a new content to the MultipartContent
content
- Content to be added to the MultipartContent
protected void dispose(boolean disposing)
Releases unmanaged and - optionally - managed resources.
public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Content> iterator()
Returns an enumerator that iterates through a collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Content>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<Content>
iterator
in interface java.lang.Iterable<Content>
IEnumerator
object that can be used to iterate through the collection.public com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
Gets the enumerator.
protected void serializeToStream(com.aspose.ms.System.IO.Stream stream)
Serializes to stream.
serializeToStream
in class Content
stream
- The stream.