本文整理汇总了Java中org.monte.media.io.ImageInputStreamAdapter类的典型用法代码示例。如果您正苦于以下问题:Java ImageInputStreamAdapter类的具体用法?Java ImageInputStreamAdapter怎么用?Java ImageInputStreamAdapter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ImageInputStreamAdapter类属于org.monte.media.io包,在下文中一共展示了ImageInputStreamAdapter类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: prependDHTSeg
import org.monte.media.io.ImageInputStreamAdapter; //导入依赖的package包/类
public static ImageInputStream prependDHTSeg(ImageInputStream iisWithoutDHT) throws IOException {
Vector<InputStream> v = new Vector<InputStream>();
v.add(new ByteArrayInputStream(JFIFSOISeg));
v.add(new ByteArrayInputStream(MJPGDHTSeg));
iisWithoutDHT.seek(2);// skip JFIF SOI
v.add(new ImageInputStreamAdapter(iisWithoutDHT));
return new MemoryCacheImageInputStream(new SequenceInputStream(v.elements()));
}
示例2: readAllMetadata
import org.monte.media.io.ImageInputStreamAdapter; //导入依赖的package包/类
private void readAllMetadata() throws IOException {
long remainingSize = in.length();
if (remainingSize == -1) {
remainingSize = Long.MAX_VALUE;
}
in.seek(0);
readAllMetadata(new DataAtomInputStream(new ImageInputStreamAdapter(in)), remainingSize, new HashMap<String, InputAtom>(), null);
}
示例3: readImages
import org.monte.media.io.ImageInputStreamAdapter; //导入依赖的package包/类
private void readImages() throws IOException {
ImageInputStream in = (ImageInputStream) getInput();
if (images == null) {
in.seek(0);
ILBMDecoder d = new ILBMDecoder(new ImageInputStreamAdapter(in));
images = d.produce();
}
}
示例4: readImages
import org.monte.media.io.ImageInputStreamAdapter; //导入依赖的package包/类
private void readImages() throws IOException {
ImageInputStream in = (ImageInputStream) getInput();
if (images == null) {
in.seek(0);
PBMDecoder d = new PBMDecoder(new ImageInputStreamAdapter(in));
images = d.produce();
}
}
示例5: parse
import org.monte.media.io.ImageInputStreamAdapter; //导入依赖的package包/类
public long parse(ImageInputStream in, RIFFVisitor v)
throws ParseException, AbortException, IOException {
return parse(new ImageInputStreamAdapter(in), v);
}