/src/main/java/org/htmlunit/html/HtmlImage.java
if ( null == imageWebResponse_) {
if ( null != imageWebResponse_ ) {
} anchor.doClickStateUpdate(shiftKey, ctrlKey); return false; } public void saveAs(final File file) throws IOException { downloadImageIfNeeded(); <extra_id_0> try (OutputStream fos = Files.newOutputStream(file.toPath()); InputStream inputStream = imageWebResponse_.getContentAsStream()) { IOUtils.copy(inputStream, fos); } } }