com.aspose.html.net

Class StringContent

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


    public class StringContent
    extends ByteArrayContent

    Represents content based on a string.

    • Constructor Detail

      • StringContent

        public StringContent(java.lang.String content)

        Initializes a new instance of the StringContent class.

        Parameters:
        content - The content.
      • StringContent

        public StringContent(java.lang.String content,
                             com.aspose.ms.System.Text.Encoding encoding)

        Initializes a new instance of the StringContent class.

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

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

        Initializes a new instance of the StringContent class.

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