Package eu.bandm.tools.util.files
Class NewlineCompleter
java.lang.Object
java.io.Reader
java.io.FilterReader
eu.bandm.tools.util.files.NewlineCompleter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
A secondary Reader that supplies one single newline at the
end of the file, if there is none.
-
Field Summary
Modifier and TypeFieldDescription(package private) boolean
(package private) boolean
Fields inherited from class java.io.FilterReader
in
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterReader
close, mark, markSupported, read, ready, reset, skip
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Field Details
-
isEnded
boolean isEnded -
lastWasLf
boolean lastWasLf
-
-
Constructor Details
-
NewlineCompleter
-
-
Method Details
-
read
- Overrides:
read
in classFilterReader
- Throws:
IOException
-