Class NoCloseWriter

    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
      • writer

        private Writer writer
        A writer or null. The latter is the case if initialized with null, or if tried to close via close(). In the latter case it is not even possible to close with reallyClose().
    • Constructor Detail

      • NoCloseWriter

        public NoCloseWriter​(Writer writer)
        Create a NoCloseWriter that will protect writer.
        Parameters:
        writer - the writer to be protected from being closed by close().