gnu.inet.util
Class CRLFInputStream
FilterInputStream
gnu.inet.util.CRLFInputStream
public class CRLFInputStream
extends FilterInputStream
An input stream that filters out CR/LF pairs into LFs.
- Chris Burdess
static int | CR - The CR octet.
|
static int | LF - The LF octet.
|
CRLFInputStream(InputStream in) - Constructs a CR/LF input stream connected to the specified input
stream.
|
int | read() - Reads the next byte of data from this input stream.
|
int | read(byte[] b) - Reads up to b.length bytes of data from this input stream into
an array of bytes.
|
int | read(byte[] b, int off, int len) - Reads up to len bytes of data from this input stream into an
array of bytes, starting at the specified offset.
|
CR
public static final int CR
The CR octet.
- 13
LF
public static final int LF
The LF octet.
- 10
CRLFInputStream
public CRLFInputStream(InputStream in)
Constructs a CR/LF input stream connected to the specified input
stream.
read
public int read()
throws IOException
Reads the next byte of data from this input stream.
Returns -1 if the end of the stream has been reached.
read
public int read(byte[] b)
throws IOException
Reads up to b.length bytes of data from this input stream into
an array of bytes.
Returns -1 if the end of the stream has been reached.
read
public int read(byte[] b,
int off,
int len)
throws IOException
Reads up to len bytes of data from this input stream into an
array of bytes, starting at the specified offset.
Returns -1 if the end of the stream has been reached.
© Copyright 2003 The Free Software Foundation,
all rights reserved