Package org.apache.commons.io.input
Class WindowsLineEndingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.io.input.AbstractLineEndingInputStream
-
- org.apache.commons.io.input.WindowsLineEndingInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class WindowsLineEndingInputStream extends AbstractLineEndingInputStream
A filtering input stream that ensures the content will have Windows line endings, CRLF.- Since:
- 2.5
-
-
Field Summary
Fields Modifier and Type Field Description private booleaninjectSlashLf-
Fields inherited from class org.apache.commons.io.input.AbstractLineEndingInputStream
atEos, atSlashCr, atSlashLf, in, lineFeedAtEos
-
-
Constructor Summary
Constructors Constructor Description WindowsLineEndingInputStream(java.io.InputStream in, boolean lineFeedAtEos)Constructs an input stream that filters another stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private inthandleEos()Handles the end of stream condition.intread()-
Methods inherited from class org.apache.commons.io.input.AbstractLineEndingInputStream
close, mark
-
-