1 7 8 package org.jboss.media.format.image.iio; 9 10 import java.io.InputStream ; 11 12 import javax.emb.MediaException; 13 import javax.emb.MediaHeader; 14 import javax.imageio.ImageReader ; 15 import javax.imageio.metadata.IIOMetadata ; 16 17 24 public class StandardMediaFormat extends IIOMediaFormat 25 { 26 private static final long serialVersionUID = 0L; 28 29 34 public StandardMediaFormat(ImageReader imageReader) 35 { 36 super(imageReader); 37 } 38 39 42 public MediaHeader extractHeader(InputStream content) throws MediaException 43 { 44 IIOMetadata imageMetadata = extractImageMetadata(content); 45 return new StandardMediaHeader(imageMetadata); 46 } 47 } 48 | Popular Tags |