java.lang.Object
java.io.Reader
com.maroontress.clione.impl.AbstractReader
com.maroontress.clione.impl.UnifiedNewlineReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
This reader substitutes
'\n' for all newlines (LF, CRLF, and CR)
in the stream, even if different newlines are mixed in the stream.
Note that the LexicalParser uses '\n' as the newline
character.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.maroontress.clione.impl.AbstractReader
readMethods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, ready, reset, skip, transferTo
-
Constructor Details
-
UnifiedNewlineReader
Creates a reader unifying newlines.- Parameters:
reader- The reader from which characters will be read.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
read
- Overrides:
readin classReader- Throws:
IOException
-