/** * <p>Returns the image's actual height (<b>not</b> the image's {@link #getHeightAttribute() height attribute}).</p> * <p><span style="color:red">POTENTIAL PERFORMANCE KILLER - DOWNLOADS THE IMAGE - USE AT YOUR OWN RISK</span></p> * <p>If the image has not already been downloaded, this method triggers a download and caches the image.</p> * * @return the image's actual height * @throws IOException if an error occurs while downloading or reading the image */ public int getHeight() throws IOException { if (height_ < 0) { determineWidthAndHeight(); } return height_; }
/** * <p>Returns the image's actual width (<b>not</b> the image's {@link #getWidthAttribute() width attribute}).</p> * <p><span style="color:red">POTENTIAL PERFORMANCE KILLER - DOWNLOADS THE IMAGE - USE AT YOUR OWN RISK</span></p> * <p>If the image has not already been downloaded, this method triggers a download and caches the image.</p> * * @return the image's actual width * @throws IOException if an error occurs while downloading or reading the image */ public int getWidth() throws IOException { if (width_ < 0) { determineWidthAndHeight(); } return width_; }
/** * <p>Returns the image's actual width (<b>not</b> the image's {@link #getWidthAttribute() width attribute}).</p> * <p><span style="color:red">POTENTIAL PERFORMANCE KILLER - DOWNLOADS THE IMAGE - USE AT YOUR OWN RISK</span></p> * <p>If the image has not already been downloaded, this method triggers a download and caches the image.</p> * * @return the image's actual width * @throws IOException if an error occurs while downloading or reading the image */ public int getWidth() throws IOException { if (width_ < 0) { determineWidthAndHeight(); } return width_; }
/** * <p>Returns the image's actual height (<b>not</b> the image's {@link #getHeightAttribute() height attribute}).</p> * <p><span style="color:red">POTENTIAL PERFORMANCE KILLER - DOWNLOADS THE IMAGE - USE AT YOUR OWN RISK</span></p> * <p>If the image has not already been downloaded, this method triggers a download and caches the image.</p> * * @return the image's actual height * @throws IOException if an error occurs while downloading or reading the image */ public int getHeight() throws IOException { if (height_ < 0) { determineWidthAndHeight(); } return height_; }