2 * Copyright 2004-2008 the Seasar Foundation and the Others.
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
\r
13 * either express or implied. See the License for the specific language
\r
14 * governing permissions and limitations under the License.
\r
16 package org.seasar.extension.jdbc.gen.internal.util;
\r
18 import java.io.Closeable;
\r
19 import java.io.IOException;
\r
21 import org.seasar.framework.log.Logger;
\r
24 * {@link Closeable}のユーティリティクラスです。
\r
28 public class CloseableUtil {
\r
31 protected static Logger logger = Logger.getLogger(Closeable.class);
\r
36 protected CloseableUtil() {
\r
45 public static void close(Closeable closeable) {
\r
47 if (closeable != null) {
\r
50 } catch (IOException ignore) {
\r