public class WindowsLineEndingInputStream
extends java.io.InputStream
Constructor and Description |
---|
WindowsLineEndingInputStream(java.io.InputStream in,
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() |
public WindowsLineEndingInputStream(java.io.InputStream in, boolean ensureLineFeedAtEndOfFile)
in
- The input stream to wrapensureLineFeedAtEndOfFile
- true to ensure that the file ends with CRLFpublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
- upon errorpublic void mark(int readlimit)
mark
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
Copyright © 2010 - 2023 Adobe. All Rights Reserved