Class StreamingMarkupWriter
- java.lang.Object
 - 
- java.io.Writer
 - 
- groovy.xml.streamingmarkupsupport.StreamingMarkupWriter
 
 
 
- 
- All Implemented Interfaces:
 Closeable,Flushable,Appendable,AutoCloseable
public class StreamingMarkupWriter extends Writer
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected CharsetEncoderencoderprotected Stringencodingprotected booleanencodingKnownprotected booleanhaveHighSurrogateprotected StringBuildersurrogatePairprotected Writerwriterprotected booleanwritingAttribute 
- 
Constructor Summary
Constructors Constructor Description StreamingMarkupWriter(Writer writer)StreamingMarkupWriter(Writer writer, String encoding)StreamingMarkupWriter(Writer writer, String encoding, boolean useDoubleQuotes) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Writerescaped()voidflush()StringgetEncoding()booleangetEncodingKnown()voidsetWritingAttribute(boolean writingAttribute)Writerunescaped()voidwrite(char[] cbuf, int off, int len)voidwrite(int c) 
 - 
 
- 
- 
Field Detail
- 
writer
protected final Writer writer
 
- 
encoding
protected final String encoding
 
- 
encodingKnown
protected boolean encodingKnown
 
- 
encoder
protected final CharsetEncoder encoder
 
- 
writingAttribute
protected boolean writingAttribute
 
- 
haveHighSurrogate
protected boolean haveHighSurrogate
 
- 
surrogatePair
protected StringBuilder surrogatePair
 
 - 
 
- 
Method Detail
- 
close
public void close() throws IOException- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Specified by:
 closein classWriter- Throws:
 IOException
 
- 
flush
public void flush() throws IOException- Specified by:
 flushin interfaceFlushable- Specified by:
 flushin classWriter- Throws:
 IOException
 
- 
write
public void write(int c) throws IOException- Overrides:
 writein classWriter- Throws:
 IOException
 
- 
write
public void write(char[] cbuf, int off, int len) throws IOException- Specified by:
 writein classWriter- Throws:
 IOException
 
- 
setWritingAttribute
public void setWritingAttribute(boolean writingAttribute)
 
- 
escaped
public Writer escaped()
 
- 
unescaped
public Writer unescaped()
 
- 
getEncoding
public String getEncoding()
 
- 
getEncodingKnown
public boolean getEncodingKnown()
 
 - 
 
 -