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 CharsetEncoder
encoder
protected String
encoding
protected boolean
encodingKnown
protected boolean
haveHighSurrogate
protected StringBuilder
surrogatePair
protected Writer
writer
protected boolean
writingAttribute
-
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 void
close()
Writer
escaped()
void
flush()
String
getEncoding()
boolean
getEncodingKnown()
void
setWritingAttribute(boolean writingAttribute)
Writer
unescaped()
void
write(char[] cbuf, int off, int len)
void
write(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
setWritingAttribute
public void setWritingAttribute(boolean writingAttribute) -
escaped
-
unescaped
-
getEncoding
-
getEncodingKnown
public boolean getEncodingKnown()
-