Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
StreamCloser |
|
| 0.0;0 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.api.util; | |
8 | ||
9 | /** | |
10 | * Closes a stream. A stream closer can close multiple stream types. | |
11 | */ | |
12 | public interface StreamCloser | |
13 | { | |
14 | ||
15 | boolean canClose(Class<?> streamType); | |
16 | ||
17 | void close(Object stream) throws Exception; | |
18 | ||
19 | } |