public class WindowsLineEndingInputStream extends InputStream
Constructor and Description |
---|
WindowsLineEndingInputStream(InputStream in,
boolean ensureLineFeedAtEndOfFile)
Create 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, skip
public WindowsLineEndingInputStream(InputStream in, boolean ensureLineFeedAtEndOfFile)
in
- The input stream to wrapensureLineFeedAtEndOfFile
- true to ensure that the file ends with CRLFpublic int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
- upon errorpublic void mark(int readlimit)
mark
in class InputStream
Jas4pp 1.5 © Java Analysis Studio for Particle Physics