1 51 package org.apache.fop.image.analyser; 52 53 import java.io.BufferedInputStream ; 55 import java.io.IOException ; 56 57 62 public abstract class AbstractImageReader implements ImageReader { 63 64 67 protected int width = 0; 68 69 72 protected int height = 0; 73 74 77 protected BufferedInputStream imageStream = null; 78 79 public abstract boolean verifySignature(String uri, BufferedInputStream fis) 80 throws IOException ; 81 82 public int getHeight() { 83 return this.height; 84 } 85 86 public int getWidth() { 87 return this.width; 88 } 89 90 public abstract String getMimeType(); 91 92 public BufferedInputStream getInputStream() { 93 return this.imageStream; 94 } 95 96 } 97 98 | Popular Tags |