Return type | Name and parameters |
---|---|
Appendable
|
leftShift(Object value)
Overloads the leftShift operator for Appendable to allow an object to be appended using Groovy's default representation for the object. |
Appendable
|
withFormatter(Closure closure)
Invokes a Closure that uses a Formatter taking care of resource handling. |
Appendable
|
withFormatter(Locale locale, Closure closure)
Invokes a Closure that uses a Formatter taking care of resource handling. |
Overloads the leftShift operator for Appendable to allow an object to be appended using Groovy's default representation for the object.
value
- an Object whose default representation will be appended to the AppendableInvokes a Closure that uses a Formatter taking care of resource handling. A Formatter is created and passed to the Closure as its argument. After the Closure executes, the Formatter is flushed and closed releasing any associated resources.
closure
- a 1-arg Closure which will be called with a Formatter as its argumentInvokes a Closure that uses a Formatter taking care of resource handling. A Formatter is created using the given Locale and passed to the Closure as its argument. After the Closure executes, the Formatter is flushed and closed releasing any associated resources.
locale
- a Locale used when creating the Formatterclosure
- a 1-arg Closure which will be called with a Formatter as its argument