Class NewlineCompleter

java.lang.Object
java.io.Reader
java.io.FilterReader
eu.bandm.tools.util.files.NewlineCompleter
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class NewlineCompleter extends FilterReader
A secondary Reader that supplies one single newline at the end of the file, if there is none.
  • Field Details

    • isEnded

      boolean isEnded
    • lastWasLf

      boolean lastWasLf
  • Constructor Details

    • NewlineCompleter

      public NewlineCompleter(Reader in)
  • Method Details