Class EolAwareOutputStream

java.lang.Object
java.io.OutputStream
org.eclipse.jgit.merge.EolAwareOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

class EolAwareOutputStream extends OutputStream
An output stream which is aware of newlines and can be asked to begin a new line if not already in one.
  • Field Details

    • out

      private final OutputStream out
    • bol

      private boolean bol
  • Constructor Details

    • EolAwareOutputStream

      EolAwareOutputStream(OutputStream out)
      Initialize a new EOL aware stream.
      Parameters:
      out - stream to output all writes to.
  • Method Details