1 package com.bumptech.glide.load.model; 2 3 import android.os.ParcelFileDescriptor; 4 5 import java.io.InputStream; 6 7 /** 8 * A simple wrapper that wraps an {@link java.io.InputStream} and/or an {@link android.os.ParcelFileDescriptor}. 9 */ 10 public class ImageVideoWrapper { 11 private final InputStream streamData; 12 private final ParcelFileDescriptor fileDescriptor; 13 14 public ImageVideoWrapper(InputStream streamData, ParcelFileDescriptor fileDescriptor) { 15 this.streamData = streamData; 16 this.fileDescriptor = fileDescriptor; 17 } 18 19 public InputStream getStream() { 20 return streamData; 21 } 22 23 public ParcelFileDescriptor getFileDescriptor() { 24 return fileDescriptor; 25 } 26 } 27