Code example for InputStream

Methods: createFromStream, close

0
			String entryName = thumbnails.get(position);
			InputStream is = null;
			Drawable drawable = null;
			try { 
				is = innerComic.getInputStream(entryName);
				drawable = Drawable.createFromStream(is, entryName);
				is.close();
			} catch (Exception e) {
				if (is != null) {
					try { is.close(); } catch (Exception e1) {}
				} 
			} 
			return drawable;
		} else { 
			return null; 
		} 
	} 
	 
	@Override 
	public Uri getUri(int position) {
		return innerComic.getUri(position);