java.io.Closeable, java.lang.AutoCloseablepublic class UnixLineEndingInputStream extends java.io.InputStream
| Constructor | Description |
|---|---|
UnixLineEndingInputStream(java.io.InputStream in,
boolean ensureLineFeedAtEndOfFile) |
Create an input stream that filters another stream
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the stream.
|
void |
mark(int readlimit) |
|
int |
read() |
public UnixLineEndingInputStream(java.io.InputStream in, boolean ensureLineFeedAtEndOfFile)
in - The input stream to wrapensureLineFeedAtEndOfFile - true to ensure that the file ends with LFpublic int read() throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close() throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException - upon errorpublic void mark(int readlimit)
mark in class java.io.InputStream