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
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 Details
-
writer
-
encoding
-
encodingKnown
protected boolean encodingKnown -
encoder
-
writingAttribute
protected boolean writingAttribute -
haveHighSurrogate
protected boolean haveHighSurrogate -
surrogatePair
-
-
Constructor Details
-
StreamingMarkupWriter
-
StreamingMarkupWriter
-
StreamingMarkupWriter
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
setWritingAttribute
public void setWritingAttribute(boolean writingAttribute) -
escaped
-
unescaped
-
getEncoding
-
getEncodingKnown
public boolean getEncodingKnown()
-