Package org.apache.sling.feature.io
Class CloseShieldWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- org.apache.sling.feature.io.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.
-
-
Field Summary
-
Fields inherited from class java.io.FilterWriter
out
-
-
Constructor Summary
Constructors Constructor Description CloseShieldWriter(Writer out)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.-
Methods inherited from class java.io.FilterWriter
flush, write, write, write
-
-
-
-
Constructor Detail
-
CloseShieldWriter
public CloseShieldWriter(Writer out)
Deprecated.
-
-
Method Detail
-
close
public void close() throws IOException
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterWriter
- Throws:
IOException
-
-