gnu.inet.util
Class CRLFOutputStream
FilterOutputStream
gnu.inet.util.CRLFOutputStream
public class CRLFOutputStream
extends FilterOutputStream
An output stream that filters LFs into CR/LF pairs.
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(OutputStream out) - Constructs a CR/LF output stream connected to the specified output stream.
|
void | write(String text) - Writes the specified ASCII string to the underlying 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 | writeln() - Writes a newline to the underlying stream.
|
CR
public static final int CR
The CR octet.
CRLF
public static final byte[] CRLF
The CR/LF pair.
LF
public static final int LF
The LF octet.
last
protected int last
The last byte read.
CRLFOutputStream
public CRLFOutputStream(OutputStream out)
Constructs a CR/LF output stream connected to the specified output stream.
write
public void write(String text)
throws IOException
Writes the specified ASCII string to the underlying stream.
write
public void write(byte[] b)
throws IOException
Writes a byte array to the underlying stream.
write
public void write(byte[] b,
int off,
int len)
throws IOException
Writes a portion of a byte array to the underlying stream.
write
public void write(int ch)
throws IOException
Writes a character to the underlying stream.
writeln
public void writeln()
throws IOException
Writes a newline to the underlying stream.
© Copyright 2003 The Free Software Foundation,
all rights reserved