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:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Readable
public final class CRLFLineReader extends java.io.BufferedReaderCRLFLineReader 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
-
-
Constructor Summary
Constructors Constructor Description CRLFLineReader(java.io.Reader reader)Creates a CRLFLineReader that wraps an existing Reader input source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringreadLine()Read a line of text.
-
-
-
Method Detail
-
readLine
public java.lang.String readLine() throws java.io.IOExceptionRead 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:
readLinein classjava.io.BufferedReader- Throws:
java.io.IOException- Since:
- 3.0
-
-