public class BinaryPage extends Object implements Page
getInputStream()
to get the content.Constructor and Description |
---|
BinaryPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 intopublic void initialize()
initialize
in interface Page
public void cleanUp()
public InputStream getInputStream() throws IOException
IOException
- if an IO error occurspublic WebResponse getWebResponse()
getWebResponse
in interface Page
public WebWindow getEnclosingWindow()
getEnclosingWindow
in interface Page
Copyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.