Package org.apache.commons.net.io
Class CRLFLineReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
org.apache.commons.net.io.CRLFLineReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
CRLFLineReader implements a readLine() method that requires exactly CRLF to terminate an input line. This is required for IMAP, which allows bare CR and LF.
- Since:
- 3.0
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCRLFLineReader
(Reader reader) Creates a CRLFLineReader that wraps an existing Reader input source. -
Method Summary
Methods inherited from class java.io.BufferedReader
close, lines, mark, markSupported, read, read, ready, reset, skip
-
Constructor Details
-
CRLFLineReader
Creates a CRLFLineReader that wraps an existing Reader input source.- Parameters:
reader
- The Reader input source.
-
-
Method Details
-
readLine
Read a line of text. A line is considered to be terminated by carriage return followed immediately by a linefeed. This contrasts with BufferedReader which also allows other combinations.- Overrides:
readLine
in classBufferedReader
- Throws:
IOException
- Since:
- 3.0
-