net.sf.eos.io
Class NewlineReplaceWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
net.sf.eos.io.NewlineReplaceWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class NewlineReplaceWriter
- extends FilterWriter
The implementation replaces linefeed (ASCII 0x0a) and carriage
return (ASCII 0x0d) characters thru a space character
(ASCII 0x20).
- Author:
- Sascha Kohlmann
Method Summary |
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int c)
|
void |
write(String str,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewlineReplaceWriter
public NewlineReplaceWriter(Writer out)
- Creates a new writer.
- Parameters:
out
- a writer to decorate
write
public void write(int c)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
write
public void write(String str,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
Copyright © 2008. All Rights Reserved.