Class AutoCRLFOutputStream

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

public class AutoCRLFOutputStream extends OutputStream
An OutputStream that expands LF to CRLF. Existing CRLF are not expanded to CRCRLF, but retained as is. A binary check on the first 8000 bytes is performed and in case of binary files, canonicalization is turned off (for the complete file).