public InputStream getStream(String s, Object obj) throws IOException { static class _cls1 { static final int $SwitchMap$com$nostra13$universalimageloader$core$download$ImageDownloader$Scheme[]; static { $SwitchMap$com$nostra13$universalimageloader$core$download$ImageDownloader$Scheme = new int[ImageDownloader.Scheme.values().length]; try { $SwitchMap$com$nostra13$universalimageloader$core$download$ImageDownloader$Scheme[ImageDownloader.Scheme.HTTP.ordinal()] = 1; } catch (NoSuchFieldError nosuchfielderror1) { } try { $SwitchMap$com$nostra13$universalimageloader$core$download$ImageDownloader$Scheme[ImageDownloader.Scheme.HTTPS.ordinal()] = 2; } catch (NoSuchFieldError nosuchfielderror) { return; } } } switch (_cls1..SwitchMap.com.nostra13.universalimageloader.core.download.ImageDownloader.Scheme[ImageDownloader.Scheme.ofUri(s).ordinal()]) { default: return wrappedDownloader.getStream(s, obj); case 1: // '\001' case 2: // '\002' throw new IllegalStateException();
@Override public InputStream getStream(String imageUri, Object extra) throws IOException { InputStream imageStream = wrappedDownloader.getStream(imageUri, extra); switch (Scheme.ofUri(imageUri)) { case HTTP: case HTTPS: return new FlushedInputStream(imageStream); default: return imageStream; } }