public class BasicFieldOutput extends Object implements FieldOutput
FieldOutput.FieldOutput.Option| Constructor and Description |
|---|
BasicFieldOutput() |
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
acquireBuffer()
Acquires the internal buffer.
|
FieldOutput |
addOption(FieldOutput.Option option)
Adds an option of this output.
|
FieldOutput |
addOptions(FieldOutput.Option... opts)
Adds options of this output.
|
CharSequence |
get()
Returns the output contents.
|
List<FieldOutput.Option> |
getOptions()
Returns the options of this output.
|
FieldOutput |
put(CharSequence contents)
Adds a content into this output.
|
FieldOutput |
put(CharSequence contents,
int start,
int end)
Adds a content into this output.
|
void |
putNull()
Sets this field as
NULL. |
void |
releaseBuffer(StringBuilder acquired)
Releases the
acquired buffer. |
BasicFieldOutput |
reset()
Clears the last output.
|
BasicFieldOutput |
set(CharSequence contents)
Clears the last output and set the contents.
|
String |
toString() |
public BasicFieldOutput reset()
public BasicFieldOutput set(CharSequence contents)
contents - the contents (nullable)public CharSequence get()
FieldOutputget in interface FieldOutputnull if this output was set as nullpublic List<FieldOutput.Option> getOptions()
FieldOutputgetOptions in interface FieldOutputpublic void putNull()
FieldOutputNULL.putNull in interface FieldOutputpublic FieldOutput put(CharSequence contents, int start, int end)
FieldOutputput in interface FieldOutputcontents - the contentstart - the beginning index (inclusive)end - the ending index (exclusive)public FieldOutput put(CharSequence contents)
FieldOutputput in interface FieldOutputcontents - the contentpublic FieldOutput addOption(FieldOutput.Option option)
FieldOutputaddOption in interface FieldOutputoption - the optionspublic FieldOutput addOptions(FieldOutput.Option... opts)
FieldOutputaddOptions in interface FieldOutputopts - the optionspublic StringBuilder acquireBuffer()
FieldOutputacquireBuffer in interface FieldOutputpublic void releaseBuffer(StringBuilder acquired)
FieldOutputacquired buffer.releaseBuffer in interface FieldOutputacquired - the buffer to releaseCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.