com.tagtraum.perf.io
Class MaskedStreamWriter
java.lang.Object
|
+--java.io.Writer
|
+--com.tagtraum.perf.io.MaskedStreamWriter
- public class MaskedStreamWriter
- extends java.io.Writer
Writes only bytes that fit through a defined mask.
- 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.Writer |
write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASCII_MASK
public static final int ASCII_MASK
- See Also:
- Constant Field Values
ISO_8859_1_MASK
public static final int ISO_8859_1_MASK
- See Also:
- Constant Field Values
MaskedStreamWriter
public MaskedStreamWriter(java.io.OutputStream out,
int mask)
- Parameters:
mask
- mask has to be less than 256out
- the OutputStream to write to.
MaskedStreamWriter
public MaskedStreamWriter(java.io.OutputStream out,
int bufsize,
int mask)
- Parameters:
mask
- mask has to be less than 256out
- the OutputStream to write to.bufsize
- size of the interim buffer bytes are written to
write
public void write(int c)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
java.io.IOException
write
public void write(char[] cbuf,
int offset,
int length)
throws java.io.IOException
- Specified by:
write
in class java.io.Writer
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.Writer
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in class java.io.Writer
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in class java.io.Writer
java.io.IOException
Copyright © 2002 Hendrik Schreiber
http://www.tagtraum.com/performance/
This software can be distributed under LGPL