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
-
Method Summary
Methods inherited from class com.maroontress.clione.impl.AbstractReader
read
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-
read
- Overrides:
read
in classReader
- Throws:
IOException
-