Package org.apache.commons.io.input
Class WindowsLineEndingInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.io.input.WindowsLineEndingInputStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable
A filtering input stream that ensures the content will have Windows line endings, CRLF.
- Since:
- 2.5
- 
Constructor SummaryConstructorsConstructorDescriptionWindowsLineEndingInputStream(InputStream in, boolean lineFeedAtEos) Constructs an input stream that filters another stream.
- 
Method SummaryMethods inherited from class java.io.InputStreamavailable, markSupported, read, read, reset, skip
- 
Constructor Details- 
WindowsLineEndingInputStreamConstructs an input stream that filters another stream.- Parameters:
- in- The input stream to wrap.
- lineFeedAtEos- true to ensure that the stream ends with CRLF.
 
 
- 
- 
Method Details- 
closeCloses the stream. Also closes the underlying stream.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- InputStream
- Throws:
- IOException- upon error
 
- 
mark- Overrides:
- markin class- InputStream
 
- 
read- Specified by:
- readin class- InputStream
- Throws:
- IOException
 
 
-