|
Groovy JDK |
Method Summary | |
---|---|
Writer
|
leftShift(Object value)
Overloads the left shift operator to provide a mechanism to append values to a writer |
Object
|
withWriter(Closure closure)
Allows this writer to be used within the closure, ensuring that it is flushed and closed before this method returns |
void
|
write(Writable writable)
A helper method so that dynamic dispatch of the writer will always use the more efficient Writable object implements the Writable interface |
Method Detail |
---|
public Writer leftShift(Object value)
value
- a value to append.
public Object withWriter(Closure closure)
closure
- the closure that the writer is passed into.
public void write(Writable writable)
writable
- an object implementing the Writable interface.
|
Groovy JDK |