|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.BinaryPage
public class BinaryPage
A page for binary content. You must use getInputStream()
to get the content.
Constructor Summary | |
---|---|
BinaryPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance. |
Method Summary | |
---|---|
void |
cleanUp()
Clean up this page. |
WebWindow |
getEnclosingWindow()
Returns the window that this page is sitting inside. |
InputStream |
getInputStream()
Returns an input stream representing all the content that was returned from the server. |
URL |
getUrl()
Returns the URL of this page. |
WebResponse |
getWebResponse()
Returns the web response that was originally used to create this page. |
void |
initialize()
Initialize this page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryPage(WebResponse webResponse, WebWindow enclosingWindow)
webResponse
- the response from the server that contains the data required to create this pageenclosingWindow
- the window that this page is being loaded intoMethod Detail |
---|
public void initialize()
initialize
in interface Page
public void cleanUp()
cleanUp
in interface Page
public InputStream getInputStream() throws IOException
IOException
- if an IO error occurspublic WebResponse getWebResponse()
getWebResponse
in interface Page
public WebWindow getEnclosingWindow()
getEnclosingWindow
in interface Page
public URL getUrl()
getUrl
in interface Page
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |