MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / read

Method read

ij/src/main/java/ij/plugin/GIF_Reader.java:189–206  ·  view source on GitHub ↗

Reads GIF image from stream @param BufferedInputStream containing GIF file. @return int read status code

(BufferedInputStream is)

Source from the content-addressed store, hash-verified

187 * @return int read status code
188 */
189 public int read(BufferedInputStream is) {
190 init();
191 if (is != null) {
192 in = is;
193 readHeader();
194 if (!err()) {
195 readContents();
196 if (frameCount < 0)
197 status = STATUS_FORMAT_ERROR;
198 }
199 } else {
200 status = STATUS_OPEN_ERROR;
201 }
202 try {
203 is.close();
204 } catch (IOException e) {}
205 return status;
206 }
207
208
209 /**

Callers 9

runMethod · 0.95
decodeImageDataMethod · 0.95
readBlockMethod · 0.95
readContentsMethod · 0.95
readGraphicControlExtMethod · 0.95
readHeaderMethod · 0.95
readImageMethod · 0.95
readLSDMethod · 0.95
readShortMethod · 0.95

Calls 8

initMethod · 0.95
readHeaderMethod · 0.95
errMethod · 0.95
readContentsMethod · 0.95
closeMethod · 0.65
readMethod · 0.65
trimMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected