private static class FastDatePrinter.CharacterLiteral extends java.lang.Object implements FastDatePrinter.Rule
Inner class to output a constant single character.
| Modifier and Type | Field and Description |
|---|---|
private char |
mValue |
| Constructor and Description |
|---|
CharacterLiteral(char value)
Constructs a new instance of
CharacterLiteral
to hold the specified value. |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(java.lang.Appendable buffer,
java.util.Calendar calendar)
Appends the value of the specified calendar to the output buffer based on the rule implementation.
|
int |
estimateLength()
Returns the estimated length of the result.
|
CharacterLiteral(char value)
CharacterLiteral
to hold the specified value.value - the character literalpublic int estimateLength()
estimateLength in interface FastDatePrinter.Rulepublic void appendTo(java.lang.Appendable buffer,
java.util.Calendar calendar)
throws java.io.IOException
appendTo in interface FastDatePrinter.Rulebuffer - the output buffercalendar - calendar to be appendedjava.io.IOException - if an I/O error occurs