groovy.xml.streamingmarkupsupport
Class StreamingMarkupWriter

java.lang.Object
  extended by java.io.Writer
      extended by groovy.xml.streamingmarkupsupport.StreamingMarkupWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class StreamingMarkupWriter
extends java.io.Writer


Field Summary
protected  java.nio.charset.CharsetEncoder encoder
           
protected  java.lang.String encoding
           
protected  java.io.Writer writer
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
StreamingMarkupWriter(java.io.Writer writer)
           
StreamingMarkupWriter(java.io.Writer writer, java.lang.String encoding)
           
 
Method Summary
 java.io.Writer attributeValue()
           
 java.io.Writer bodyText()
           
 void close()
           
 void flush()
           
 java.lang.String getEncoding()
           
 java.io.Writer unescaped()
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 
Methods inherited from class java.io.Writer
append, append, append, append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected final java.io.Writer writer

encoding

protected final java.lang.String encoding

encoder

protected final java.nio.charset.CharsetEncoder encoder
Constructor Detail

StreamingMarkupWriter

public StreamingMarkupWriter(java.io.Writer writer,
                             java.lang.String encoding)

StreamingMarkupWriter

public StreamingMarkupWriter(java.io.Writer writer)
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Writer
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class java.io.Writer
Throws:
java.io.IOException

write

public void write(int c)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
Throws:
java.io.IOException

attributeValue

public java.io.Writer attributeValue()

bodyText

public java.io.Writer bodyText()

unescaped

public java.io.Writer unescaped()

getEncoding

public java.lang.String getEncoding()


Copyright © 2003-2011 The Codehaus. All Rights Reserved.