## StringContent class

Represents content based on a String.

```java
public class StringContent : ByteArrayContent
```

## Constructors

| Name | Description |
| --- | --- |
| [StringContent](Stringcontent/#constructor)(String) | Initializes a new instance of the `StringContent` class. |
| [StringContent](Stringcontent/#constructor_1)(String, Encoding) | Initializes a new instance of the `StringContent` class. |
| [StringContent](Stringcontent/#constructor_2)(String, Encoding, String) | Initializes a new instance of the `StringContent` class. |

## Properties

| Name | Description |
| --- | --- |
| [getHeaders](../../com.aspose.html.net/content/headers/) Gets the HTTP content headers. |

## Methods

| Name | Description |
| --- | --- |
| [dispose](../../com.aspose.html.net/content/dispose/)() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| [readAsByteArray](../../com.aspose.html.net/content/readasbytearray/)() | Serialize the HTTP content and return a byte array that represents the content. |
| [readAsStream](../../com.aspose.html.net/content/readasstream/)() | Serialize the HTTP content and return a stream that represents the content. |
| [readAsString](../../com.aspose.html.net/content/readasString/)() | Serialize the HTTP content and return a String that represents the content. |

### See Also

* class [ByteArrayContent](../bytearraycontent/)
* package [com.aspose.html.net](../../com.aspose.html.net/)
* package [Aspose.HTML](../../)
