Class BufferedWriter

  • All Implemented Interfaces:
    Closeable, Flushable, Appendable, AutoCloseable

    public final class BufferedWriter
    extends Writer
    Custom BufferedWriter optimized for netconf pipeline implemented instead of default BufferedWriter provided by jdk.

    The line separator instance field in java.io.BufferedWriter is assigned using AccessController and takes considerable amount of time especially if lots of BufferedWriters are created in the system.

    This implementation should only be used if newLine method is not required such as netconf message to XML encoders. Methods in this implementation are not synchronized.