public abstract class Content extends Object implements com.aspose.html.internal.ms.System.IDisposable
Represents a base class for an HTTP entity body and content headers.
Modifier and Type | Field and Description |
---|---|
static com.aspose.html.internal.ms.System.Text.Encoding |
DEFAULT_HTTP_ENCODING |
static com.aspose.html.internal.ms.System.Text.Encoding |
DEFAULT_STRING_ENCODING |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
ContentHeaders |
getHeaders()
Gets the HTTP content headers.
|
byte[] |
readAsByteArray()
Serialize the HTTP content and return a byte array that represents the content.
|
com.aspose.html.internal.ms.System.IO.Stream |
readAsStream()
Serialize the HTTP content and return a stream that represents the content.
|
String |
readAsString()
Serialize the HTTP content and return a string that represents the content.
|
public static final com.aspose.html.internal.ms.System.Text.Encoding DEFAULT_STRING_ENCODING
public static final com.aspose.html.internal.ms.System.Text.Encoding DEFAULT_HTTP_ENCODING
public ContentHeaders getHeaders()
Gets the HTTP content headers.
Value: The headers.public com.aspose.html.internal.ms.System.IO.Stream readAsStream()
Serialize the HTTP content and return a stream that represents the content.
public byte[] readAsByteArray()
Serialize the HTTP content and return a byte array that represents the content.
public String readAsString()
Serialize the HTTP content and return a string that represents the content.
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.html.internal.ms.System.IDisposable