Class CloseShieldWriter

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

    @Deprecated
    public class CloseShieldWriter
    extends FilterWriter
    Deprecated.
    Proxy writer that prevents the underlying writer from being closed.

    This class is typically used in cases where a writer needs to be passed to a component that wants to explicitly close the writer even if other components would still use the writer for output.