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