workaround for html backend - InputStream emu does not implement Closable
This commit is contained in:
parent
2965dbcaeb
commit
23b602fcca
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user