groovy.xml.streamingmarkupsupport
Class StreamingMarkupWriter
java.lang.Object
java.io.Writer
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 |
| 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 |
writer
protected final java.io.Writer writer
encoding
protected final java.lang.String encoding
encoder
protected final java.nio.charset.CharsetEncoder encoder
StreamingMarkupWriter
public StreamingMarkupWriter(java.io.Writer writer,
java.lang.String encoding)
StreamingMarkupWriter
public StreamingMarkupWriter(java.io.Writer writer)
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.