public abstract class Text extends Object
| Constructor and Description |
|---|
Text() |
| Modifier and Type | Method and Description |
|---|---|
static Text |
create(byte[] bytes,
Charset charset)
Create a text object from the provided byte array.
|
static Text |
create(char[] chars)
Create a text object from the provided char array.
|
static Text |
create(String s)
Create a text object from the provided char array.
|
abstract void |
writeTo(Writer writer) |
public static Text create(byte[] bytes, Charset charset) throws IllegalArgumentException
bytes - the markup as bytescharset - the charsetIllegalArgumentException - if the bytes is nullpublic static Text create(char[] chars) throws IllegalArgumentException
chars - the markup as bytesIllegalArgumentException - if the chars is nullpublic static Text create(String s) throws IllegalArgumentException
s - the markup as bytesIllegalArgumentException - if the string is nullpublic abstract void writeTo(Writer writer) throws IOException
IOExceptionCopyright © 2017 JBoss by Red Hat. All Rights Reserved.