public class AnsiAppender extends Object
Constructor and Description |
---|
AnsiAppender() |
Modifier and Type | Method and Description |
---|---|
AnsiAppender |
append(AnsiElement element)
拼接
|
AnsiAppender |
append(AnsiStyle style,
String text)
拼接
|
AnsiAppender |
append(Object... elements)
拼接
|
AnsiAppender |
append(String text)
拼接
|
void |
clear()
重置
|
static AnsiAppender |
create() |
String |
get()
获取 value
|
String |
getAndClear()
获取后重置
|
AnsiAppender |
newLine()
新行
|
AnsiAppender |
reset()
拼接 reset
|
String |
toString() |
public static AnsiAppender create()
public AnsiAppender append(String text)
text
- textpublic AnsiAppender append(AnsiStyle style, String text)
style
- styletext
- textpublic AnsiAppender append(AnsiElement element)
element
- elementpublic AnsiAppender append(Object... elements)
elements
- elementspublic AnsiAppender reset()
public AnsiAppender newLine()
public void clear()
public String get()
public String getAndClear()
Copyright © 2024. All rights reserved.