public class WindowsLineEndingInputStream extends InputStream
| Constructor and Description |
|---|
WindowsLineEndingInputStream(InputStream in,
boolean lineFeedAtEos)
Constructs an input stream that filters another stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream.
|
void |
mark(int readLimit) |
int |
read() |
available, markSupported, read, read, reset, skippublic WindowsLineEndingInputStream(InputStream in, boolean lineFeedAtEos)
in - The input stream to wrap.lineFeedAtEos - true to ensure that the stream ends with CRLF.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException - upon errorpublic void mark(int readLimit)
mark in class InputStreampublic int read()
throws IOException
read in class InputStreamIOException