public static class AbstractGenerator.OutputWriter
extends java.io.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) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
setCharacterEncoding(java.lang.String encoding) |
void |
write(char[] s,
int offset,
int length) |
void |
write(java.lang.String s,
int offset,
int length) |
public AbstractGenerator.OutputWriter(AbstractGenerator.Output out)
public void setCharacterEncoding(java.lang.String encoding)
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(java.lang.String s, int offset, int length) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(char[] s, int offset, int length) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.