54 |
|
|
55 |
public abstract class ImageReader |
public abstract class ImageReader |
56 |
{ |
{ |
57 |
|
private boolean aborted; |
58 |
|
|
59 |
protected Locale[] availableLocales; |
protected Locale[] availableLocales; |
60 |
protected boolean ignoreMetadata; |
protected boolean ignoreMetadata; |
61 |
protected Object input; |
protected Object input; |
73 |
this.originatingProvider = originatingProvider; |
this.originatingProvider = originatingProvider; |
74 |
} |
} |
75 |
|
|
76 |
|
public void abort() |
77 |
|
{ |
78 |
|
aborted = true; |
79 |
|
} |
80 |
|
|
81 |
|
protected boolean abortRequested() |
82 |
|
{ |
83 |
|
return aborted; |
84 |
|
} |
85 |
|
|
86 |
public void addIIOReadProgressListener(IIOReadProgressListener listener) |
public void addIIOReadProgressListener(IIOReadProgressListener listener) |
87 |
{ |
{ |
112 |
return false; |
return false; |
113 |
} |
} |
114 |
|
|
115 |
|
protected void clearAbortRequest() |
116 |
|
{ |
117 |
|
aborted = false; |
118 |
|
} |
119 |
|
|
120 |
public void dispose() |
public void dispose() |
121 |
{ |
{ |
122 |
// The default implementation does nothing. |
// The default implementation does nothing. |
183 |
public abstract IIOMetadata getStreamMetadata() |
public abstract IIOMetadata getStreamMetadata() |
184 |
throws IOException; |
throws IOException; |
185 |
|
|
186 |
|
public int getThumbnailHeight(int imageIndex, int thumbnailIndex) |
187 |
|
throws IOException |
188 |
|
{ |
189 |
|
return readThumbnail(imageIndex, thumbnailIndex).getHeight(); |
190 |
|
} |
191 |
|
|
192 |
|
public int getThumbnailWidth(int imageIndex, int thumbnailIndex) |
193 |
|
throws IOException |
194 |
|
{ |
195 |
|
return readThumbnail(imageIndex, thumbnailIndex).getWidth(); |
196 |
|
} |
197 |
|
|
198 |
public int getTileGridXOffset(int imageIndex) |
public int getTileGridXOffset(int imageIndex) |
199 |
throws IOException |
throws IOException |
200 |
{ |
{ |