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.orgConstructor 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 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(String s, int offset, int length) throws IOException
write
in class Writer
IOException
public void write(char[] s, int offset, int length) throws IOException
write
in class Writer
IOException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.