| java.lang.Object nl.hippo.cms.searchandreplace.util.StreamCleanup
StreamCleanup | public class StreamCleanup (Code) | |
A utility class to help with cleaning up streams.
|
Constructor Summary | |
public | StreamCleanup()
The only and private constructor to prevent instantiation of this
class. |
StreamCleanup | public StreamCleanup()(Code) | |
The only and private constructor to prevent instantiation of this
class.
|
close | public static void close(InputStream input, String role, SearchAndReplaceLog log)(Code) | |
Close an input stream without throwing execptions. If the closing of
the stream throws an exception, the exception is logged.
Parameters: input - the input stream to close. Parameters: role - the role of the input stream. Parameters: log - the log to which to log a messge if closing the streamthrows an exception. |
close | public static void close(OutputStream output, String role, SearchAndReplaceLog log)(Code) | |
Close an output stream without throwing execptions. If the closing of
the stream throws an exception, the exception is logged.
Parameters: output - the output stream to close. Parameters: role - the role of the output stream. Parameters: log - the log to which to log a messge if closing the streamthrows an exception. |
|
|