public class TextPage extends AbstractPage
text/| Constructor and Description |
|---|
TextPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContent()
Returns the content of this page.
|
void |
save(File file)
Saves the content of this page to a text file.
|
cleanUp, getEnclosingWindow, getUrl, getWebResponse, initialize, isHtmlPagepublic TextPage(WebResponse webResponse, WebWindow enclosingWindow)
webResponse - the response from the serverenclosingWindow - the window that holds the pagepublic String getContent()
public void save(File file) throws IOException
file - file to write this page intoIOException - If an error occursCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.