/** Reads an SGI image from the specified InputStream. */ public static SGIImage read(final InputStream in) throws IOException { final DataInputStream dIn = new DataInputStream(new BufferedInputStream(in)); final Header header = new Header(dIn); final SGIImage res = new SGIImage(header); res.decodeImage(dIn); return res; }