blob: 52f43bff4f8140b37bb7a581eeb541a8e92eef60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/*
* $Id$
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
*/
package org.apache.fop.image.analyser;
// Java
import java.io.BufferedInputStream;
import java.io.IOException;
/**
* ImageReader objects read image headers to determine the image size.
* @author Pankaj Narula
* @version 1.0
*/
public interface ImageReader {
/**
* Verify image type.
* @param bis Image buffered input stream
* @return true if image type is the handled one
* @exception IOException io error
*/
public boolean verifySignature(String uri, BufferedInputStream bis)
throws IOException;
/**
* Return the used InputStream.
* @return BufferedInputStream used to verify image type
*/
public BufferedInputStream getInputStream();
/**
* Return correspondig mime type.
* @return image mime type
*/
public String getMimeType();
/**
* Return the image height.
* @return image height
*/
public int getHeight();
/**
* Return the image width.
* @return image width
*/
public int getWidth();
}
|