JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit

Class TextPage

  • All Implemented Interfaces:
    Serializable, Page


    public class TextPage
    extends AbstractPage 
    A generic page that will be returned for any text related content. Specifically any content types that start with text/
    Author:
    Mike Bowler, David K. Taylor, Ronald Brill, Ahmed Ashour
    See Also:
    Serialized Form
    • Constructor Detail

      • TextPage

        public TextPage(WebResponse webResponse,
         WebWindow enclosingWindow)
        Creates an instance.
        Parameters:
        webResponse - the response from the server
        enclosingWindow - the window that holds the page
    • Method Detail

      • getContent

        public String getContent()
        Returns the content of this page.
        Returns:
        the content of this page
      • save

        public void save(File file)
         throws IOException 
        Saves the content of this page to a text file.
        Parameters:
        file - file to write this page into
        Throws:
        IOException - If an error occurs
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /