public class DelegateCloseHandler extends Object implements CloseHandler
A CloseHandler implementation which delegates the closed()
method call to the Closeable.close() method of a Closeable
object.
| Constructor and Description |
|---|
DelegateCloseHandler(Closeable closeable)
Creates a handler.
|
public DelegateCloseHandler(Closeable closeable)
Creates a handler.
closeable - The object which can be closed.IllegalArgumentException - If the object is null.public void closed()
throws IOException
CloseHandlerInforms the handler that a stream was closed.
closed in interface CloseHandlerIOException - If an I/O error occurs.Copyright © 2015–2019. All rights reserved.