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