org.dmonix.io
Class Dos2UnixOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.dmonix.io.Dos2UnixOutputStream
- Direct Known Subclasses:
- RemoveCRLFOutputStream
- public class Dos2UnixOutputStream
- extends java.io.FilterOutputStream
A filter outputstream that converts Windows formatted line breaks (#13#10 , \r\n) to
Unix formatted line breaks, i.e. removing all carriage return (#10 , \n) signs.
Copyright: Copyright (c) 2005
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 |
Dos2UnixOutputStream
public Dos2UnixOutputStream(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);
- 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 13 (carriage return),
the method returns without writing anything.
- 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.
- 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.