public static class AbstractGenerator.OutputWriter extends Writer
AbstractGenerator.Output stream and provide
character encodings.
The UTF-8 encoding is done by this class and no additional
buffers or Writers are used.
The UTF-8 code was inspired by http://javolution.org| Constructor and Description |
|---|
AbstractGenerator.OutputWriter(AbstractGenerator.Output out) |
public AbstractGenerator.OutputWriter(AbstractGenerator.Output out)
public void setCharacterEncoding(String encoding)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void write(String s, int offset, int length) throws IOException
write in class WriterIOExceptionpublic void write(char[] s,
int offset,
int length)
throws IOException
write in class WriterIOExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.