public class HTMLText extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HTMLText.Deserializer |
static class |
HTMLText.Serializer |
Constructor and Description |
---|
HTMLText() |
HTMLText(HTMLText other) |
HTMLText(String html) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getBody() |
String |
getHtml() |
int |
hashCode() |
boolean |
isEmpty() |
MarkdownText |
toMarkdown() |
String |
toPlainText() |
String |
toString() |
HTMLText |
wrap(int columns)
Returns a copy of this text that introduces line-breaks
|
public static final HTMLText EMPTY
public HTMLText()
public HTMLText(String html)
public HTMLText(HTMLText other)
public HTMLText wrap(int columns)
columns
- number of columns to break atpublic String getHtml()
public String getBody()
public MarkdownText toMarkdown()
public String toPlainText()
public boolean isEmpty()
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.