From 23b602fcca6e3bd9bf5ef3986903391bb82cfd3b Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Wed, 10 Jul 2013 12:05:46 +0200 Subject: [PATCH] workaround for html backend - InputStream emu does not implement Closable --- vtm/src/org/oscim/utils/IOUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vtm/src/org/oscim/utils/IOUtils.java b/vtm/src/org/oscim/utils/IOUtils.java index 920db97e..3bc71ec8 100644 --- a/vtm/src/org/oscim/utils/IOUtils.java +++ b/vtm/src/org/oscim/utils/IOUtils.java @@ -16,6 +16,7 @@ package org.oscim.utils; import java.io.Closeable; import java.io.IOException; +import java.io.InputStream; import java.util.logging.Level; import java.util.logging.Logger; @@ -28,11 +29,11 @@ public final class IOUtils { /** * Invokes the {@link Closeable#close()} method on the given object. If an {@link IOException} occurs during the * method call, it will be caught and logged on level {@link Level#WARNING}. - * + * * @param closeable * the data source which should be closed (may be null). */ - public static void closeQuietly(Closeable closeable) { + public static void closeQuietly(InputStream closeable) { try { if (closeable != null) { closeable.close();