workaround for html backend - InputStream emu does not implement Closable

This commit is contained in:
Hannes Janetzek 2013-07-10 12:05:46 +02:00
parent 2965dbcaeb
commit 23b602fcca

View File

@ -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;
@ -32,7 +33,7 @@ public final class IOUtils {
* @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();