com.tagtraum.perf.io
Class FastStreamWriter
java.lang.Object
|
+--java.io.Writer
|
+--java.io.OutputStreamWriter
|
+--com.tagtraum.perf.io.FastStreamWriter
- public class FastStreamWriter
- extends java.io.OutputStreamWriter
OutputStreamWriter that speeds up ASCII and ISO-8859-1 charsets quite a bit.
- Version:
- $Id: $
- Author:
- Hendrik Schreiber
Fields inherited from class java.io.Writer |
lock |
Method Summary |
void |
close()
|
void |
flush()
|
void |
write(char[] cbuf,
int offset,
int length)
|
void |
write(int c)
|
void |
write(java.lang.String str,
int off,
int len)
|
Methods inherited from class java.io.OutputStreamWriter |
getEncoding |
Methods inherited from class java.io.Writer |
write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FastStreamWriter
public FastStreamWriter(java.io.OutputStream out)
throws java.io.UnsupportedEncodingException
FastStreamWriter
public FastStreamWriter(java.io.OutputStream out,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
write
public void write(int c)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStreamWriter
java.io.IOException
write
public void write(char[] cbuf,
int offset,
int length)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStreamWriter
java.io.IOException
write
public void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStreamWriter
java.io.IOException
close
public void close()
throws java.io.IOException
- Overrides:
close
in class java.io.OutputStreamWriter
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Overrides:
flush
in class java.io.OutputStreamWriter
java.io.IOException
Copyright © 2002 Hendrik Schreiber
http://www.tagtraum.com/performance/
This software can be distributed under LGPL