/src/main/java/org/htmlunit/TextPage.java
final String text = getContent ( ) ; final Charset charset = getWebResponse ( ) .getContentCharset ( ) ;
} public String getContent() { return getWebResponse().getContentAsString(); } public void save(final File file) throws IOException { final Path savePath = file.toPath(); <extra_id_0> Files.write(savePath, text.getBytes(charset)); } }