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 SummaryFields Modifier and Type Field Description protected CharsetEncoderencoderprotected Stringencodingprotected booleanencodingKnownprotected booleanhaveHighSurrogateprotected StringBuildersurrogatePairprotected Writerwriterprotected booleanwritingAttribute
 - 
Constructor SummaryConstructors Constructor Description StreamingMarkupWriter(Writer writer)StreamingMarkupWriter(Writer writer, String encoding)StreamingMarkupWriter(Writer writer, String encoding, boolean useDoubleQuotes)
 - 
Method SummaryAll 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- 
writerprotected final Writer writer 
 - 
encodingprotected final String encoding 
 - 
encodingKnownprotected boolean encodingKnown 
 - 
encoderprotected final CharsetEncoder encoder 
 - 
writingAttributeprotected boolean writingAttribute 
 - 
haveHighSurrogateprotected boolean haveHighSurrogate 
 - 
surrogatePairprotected StringBuilder surrogatePair 
 
- 
 - 
Method Detail- 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein class- Writer
- Throws:
- IOException
 
 - 
flushpublic void flush() throws IOException- Specified by:
- flushin interface- Flushable
- Specified by:
- flushin class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(int c) throws IOException- Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(char[] cbuf, int off, int len) throws IOException- Specified by:
- writein class- Writer
- Throws:
- IOException
 
 - 
setWritingAttributepublic void setWritingAttribute(boolean writingAttribute) 
 - 
escapedpublic Writer escaped() 
 - 
unescapedpublic Writer unescaped() 
 - 
getEncodingpublic String getEncoding() 
 - 
getEncodingKnownpublic boolean getEncodingKnown() 
 
- 
 
-