gnu.inet.util
Class CRLFOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
gnu.inet.util.CRLFOutputStream
public class CRLFOutputStream
extends java.io.FilterOutputStream
An output stream that filters LFs into CR/LF pairs.
- Chris Burdess
- $Revision: 1.5 $ $Date: 2004/06/08 19:05:28 $
static int | CR - The CR octet.
|
static byte[] | CRLF - The CR/LF pair.
|
static int | LF - The LF octet.
|
protected int | last - The last byte read.
|
CRLFOutputStream(java.io.OutputStream out) - Constructs a CR/LF output stream connected to the specified output stream.
|
void | write(byte[] b) - Writes a byte array to the underlying stream.
|
void | write(byte[] b, int off, int len) - Writes a portion of a byte array to the underlying stream.
|
void | write(int ch) - Writes a character to the underlying stream.
|
void | write(java.lang.String text) - Writes the specified ASCII string to the underlying stream.
|
void | writeln() - Writes a newline to the underlying stream.
|
CR
public static final int CR
The CR octet.
- 13
CRLF
public static final byte[] CRLF
The CR/LF pair.
LF
public static final int LF
The LF octet.
- 10
last
protected int last
The last byte read.
CRLFOutputStream
public CRLFOutputStream(java.io.OutputStream out)
Constructs a CR/LF output stream connected to the specified output stream.
write
public void write(byte[] b)
throws java.io.IOException
Writes a byte array to the underlying stream.
java.io.IOException
- if an I/O error occurred
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
Writes a portion of a byte array to the underlying stream.
java.io.IOException
- if an I/O error occurred
write
public void write(int ch)
throws java.io.IOException
Writes a character to the underlying stream.
java.io.IOException
- if an I/O error occurred
write
public void write(java.lang.String text)
throws java.io.IOException
Writes the specified ASCII string to the underlying stream.
java.io.IOException
- if an I/O error occurred
writeln
public void writeln()
throws java.io.IOException
Writes a newline to the underlying stream.
java.io.IOException
- if an I/O error occurred
© Copyright 2003 The Free Software Foundation,
all rights reserved