com.aspose.html.net

Class StringContent

  • All Implemented Interfaces:
    com.aspose.html.internal.ms.System.IDisposable


    public class StringContent
    extends ByteArrayContent

    Represents content based on a string.

    • Constructor Detail

      • StringContent

        public StringContent(String content)

        Initializes a new instance of the StringContent class.

        Parameters:
        content - The content.
      • StringContent

        public StringContent(String content,
                             com.aspose.html.internal.ms.System.Text.Encoding encoding)

        Initializes a new instance of the StringContent class.

        Parameters:
        content - The content.
        encoding - The encoding.
      • StringContent

        public StringContent(String content,
                             com.aspose.html.internal.ms.System.Text.Encoding encoding,
                             String mediaType)

        Initializes a new instance of the StringContent class.

        Parameters:
        content - The content.
        encoding - The encoding.
        mediaType - Type of the media.