public class StreamingMarkupWriter
extends java.io.Writer
Modifier and Type | Field and Description |
---|---|
protected java.nio.charset.CharsetEncoder |
encoder |
protected java.lang.String |
encoding |
protected boolean |
encodingKnown |
protected boolean |
haveHighSurrogate |
protected java.lang.StringBuffer |
surrogatePair |
protected java.io.Writer |
writer |
protected boolean |
writingAttribute |
Constructor and Description |
---|
StreamingMarkupWriter(java.io.Writer writer) |
StreamingMarkupWriter(java.io.Writer writer,
java.lang.String encoding) |
StreamingMarkupWriter(java.io.Writer writer,
java.lang.String encoding,
boolean useDoubleQuotes) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.io.Writer |
escaped() |
void |
flush() |
java.lang.String |
getEncoding() |
boolean |
getEncodingKnown() |
void |
setWritingAttribute(boolean writingAttribute) |
java.io.Writer |
unescaped() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
protected final java.io.Writer writer
protected final java.lang.String encoding
protected boolean encodingKnown
protected final java.nio.charset.CharsetEncoder encoder
protected boolean writingAttribute
protected boolean haveHighSurrogate
protected java.lang.StringBuffer surrogatePair
public StreamingMarkupWriter(java.io.Writer writer, java.lang.String encoding)
public StreamingMarkupWriter(java.io.Writer writer, java.lang.String encoding, boolean useDoubleQuotes)
public StreamingMarkupWriter(java.io.Writer writer)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void write(int c) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void setWritingAttribute(boolean writingAttribute)
public java.io.Writer escaped()
public java.io.Writer unescaped()
public java.lang.String getEncoding()
public boolean getEncodingKnown()