groovy.lang
Interface Writable

All Known Implementing Classes:
Attribute, Attributes, Closure.WritableClosure, FilteredAttributes, FilteredNodeChildren, GPathResult, GString, GStringImpl, NoChildren, Node, NodeChild, NodeChildren, ReplacementNode, WritableFile, XmlTemplateEngine.XmlWritable

public interface Writable

Represents an object which is capable of writing itself to a text stream in a more efficient format than just creating a toString() representation of itself. This mechanism is particularly useful for templates and such like.

Version:
$Revision: 6778 $
Author:
James Strachan

Method Summary
 java.io.Writer writeTo(java.io.Writer out)
          writes this object to the given stream
 

Method Detail

writeTo

java.io.Writer writeTo(java.io.Writer out)
                       throws java.io.IOException
writes this object to the given stream

Throws:
java.io.IOException


Copyright © ${year} The Codehaus. All Rights Reserved.