org.dmonix.io
Class RemoveCRLFOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.dmonix.io.Dos2UnixOutputStream
org.dmonix.io.RemoveCRLFOutputStream
- public class RemoveCRLFOutputStream
- extends Dos2UnixOutputStream
A filter outputstream that removes all line feed (#10) and carriage return (#13) signs.
The output will become a single line datastream.
Copyright: Copyright (c) 2004
Company: dmonix.org
- Version:
- 1.0
- Author:
- Peter Nerg
| Fields inherited from class java.io.FilterOutputStream |
out |
|
Method Summary |
void |
write(byte[] b)
Writes an array of bytes.
|
void |
write(byte[] b,
int off,
int len)
Writes an array of bytes.
|
void |
write(int b)
Writes a single byte value.
|
| Methods inherited from class java.io.FilterOutputStream |
close, flush |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoveCRLFOutputStream
public RemoveCRLFOutputStream(java.io.OutputStream out)
write
public void write(byte[] b)
throws java.io.IOException
- Writes an array of bytes.
Invoking this method equals
write(b, 0, b.length);
- Overrides:
write in class Dos2UnixOutputStream
- Parameters:
b - The data
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Writes a single byte value.
If the data equals either 10 (line feed) or 13 (carriage return),
the method returns without writing anything.
- Overrides:
write in class Dos2UnixOutputStream
- Parameters:
b - The data
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Writes an array of bytes.
The method will invoke write(int b) for each
byte in the array that is to be written.
- Overrides:
write in class Dos2UnixOutputStream
- Parameters:
b - The dataoff - The position to start in the arraylen - The amount of data to use from the array
- Throws:
java.io.IOException
Copyright © 1998-2005 dmonix.org Peter Nerg, All Rights Reserved.