public class UnixLineEndingInputStream extends InputStream
| Constructor and Description |
|---|
UnixLineEndingInputStream(InputStream inputStream,
boolean ensureLineFeedAtEndOfFile)
Creates 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 UnixLineEndingInputStream(InputStream inputStream, boolean ensureLineFeedAtEndOfFile)
inputStream - The input stream to wrapensureLineFeedAtEndOfFile - true to ensure that the file ends with LFpublic 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 InputStreamIOExceptionCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.