本文整理汇总了Java中com.nostra13.universalimageloader.core.assist.FlushedInputStream类的典型用法代码示例。如果您正苦于以下问题:Java FlushedInputStream类的具体用法?Java FlushedInputStream怎么用?Java FlushedInputStream使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FlushedInputStream类属于com.nostra13.universalimageloader.core.assist包,在下文中一共展示了FlushedInputStream类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getStream
import com.nostra13.universalimageloader.core.assist.FlushedInputStream; //导入依赖的package包/类
@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;
}
}
示例2: getStream
import com.nostra13.universalimageloader.core.assist.FlushedInputStream; //导入依赖的package包/类
public InputStream getStream(String imageUri, Object extra) throws IOException {
InputStream imageStream = this.wrappedDownloader.getStream(imageUri, extra);
switch (Scheme.ofUri(imageUri)) {
case HTTP:
case HTTPS:
return new FlushedInputStream(imageStream);
default:
return imageStream;
}
}
示例3: getStream
import com.nostra13.universalimageloader.core.assist.FlushedInputStream; //导入依赖的package包/类
@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;
}
}
示例4: getStream
import com.nostra13.universalimageloader.core.assist.FlushedInputStream; //导入依赖的package包/类
public InputStream getStream(String s, Object obj)
{
InputStream inputstream = a.getStream(s, obj);
switch (f.a[com.nostra13.universalimageloader.core.download.ImageDownloader.Scheme.ofUri(s).ordinal()])
{
default:
return inputstream;
case 1: // '\001'
case 2: // '\002'
return new FlushedInputStream(inputstream);
}
}