org.mortbay.jetty
Class AbstractGenerator.OutputWriter
java.lang.Object
java.io.Writer
org.mortbay.jetty.AbstractGenerator.OutputWriter
- Direct Known Subclasses:
- HttpConnection.OutputWriter
- Enclosing class:
- AbstractGenerator
- public static class AbstractGenerator.OutputWriter
- extends Writer
OutputWriter.
A writer that can wrap a 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGenerator.OutputWriter
public AbstractGenerator.OutputWriter(AbstractGenerator.Output out)
setCharacterEncoding
public void setCharacterEncoding(String encoding)
close
public void close()
throws IOException
- Throws:
IOException
flush
public void flush()
throws IOException
- Throws:
IOException
write
public void write(String s,
int offset,
int length)
throws IOException
- Throws:
IOException
write
public void write(char[] s,
int offset,
int length)
throws IOException
- Throws:
IOException
Copyright © {inceptionYear}-2007 Mort Bay Consulting. All Rights Reserved.