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