public class HtmlAdapter<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
T |
fromHtml(java.lang.String htmlContent)
Converts html string to
T object. |
T |
fromInputStream(java.io.InputStream inputStream)
Converts the provided
InputStream to a T object. |
T |
fromInputStream(java.io.InputStream inputStream,
java.nio.charset.Charset charset,
java.net.URL baseUrl)
Converts the provided
inputStream to a T object. |
T |
fromInputStream(java.io.InputStream inputStream,
java.net.URL baseUrl)
Converts the provided
inputStream to a T object. |
public T fromHtml(java.lang.String htmlContent)
T object.htmlContent - String with HTML contentpublic T fromInputStream(java.io.InputStream inputStream) throws java.io.IOException
InputStream to a T object.
Does not close the InputStream.
inputStream - InputStream with HTML contentTjava.io.IOException - If I/O error occurs while reading the InputStreampublic T fromInputStream(java.io.InputStream inputStream, java.net.URL baseUrl) throws java.io.IOException
inputStream to a T object.
Does not close the InputStream.
inputStream - InputStream with HTML contentbaseUrl - The URL where the HTML was retrieved from, to resolve relative links against.Tjava.io.IOException - If I/O error occurs while reading the InputStreampublic T fromInputStream(java.io.InputStream inputStream, java.nio.charset.Charset charset, java.net.URL baseUrl) throws java.io.IOException
inputStream to a T object.
Does not close the InputStream.
inputStream - InputStream with HTML contentcharset - Charset to usebaseUrl - The URL where the HTML was retrieved from, to resolve relative links against.Tjava.io.IOException - If I/O error occurs while reading the InputStream