com.diasparsoftware.htmlunitx
Class InputStreamWebResponse

java.lang.Object
  extended bycom.diasparsoftware.htmlunitx.TestableWebResponse
      extended bycom.diasparsoftware.htmlunitx.InputStreamWebResponse
All Implemented Interfaces:
com.gargoylesoftware.htmlunit.WebResponse
Direct Known Subclasses:
FileSystemWebResponse

public class InputStreamWebResponse
extends TestableWebResponse


Constructor Summary
InputStreamWebResponse(java.net.URL url, java.io.InputStream contentAsStream)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
protected  byte[] getContentAsBytes()
           
 java.io.InputStream getContentAsStream()
           
 java.lang.String getContentAsString()
           
 long getLoadTimeInMilliSeconds()
           
 byte[] getResponseBody()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class com.diasparsoftware.htmlunitx.TestableWebResponse
addResponseHeaderValue, getContentCharSet, getContentType, getResponseHeaderValue, getStatusCode, getStatusMessage, getStopwatch, getUrl, setContentCharSet, setContentType, setStatusCode, setStatusMessage, setStopwatch
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputStreamWebResponse

public InputStreamWebResponse(java.net.URL url,
                              java.io.InputStream contentAsStream)
Method Detail

getContentAsString

public java.lang.String getContentAsString()
                                    throws java.io.IOException
Throws:
java.io.IOException

getContentAsStream

public java.io.InputStream getContentAsStream()

getLoadTimeInMilliSeconds

public long getLoadTimeInMilliSeconds()

getResponseBody

public byte[] getResponseBody()

getContentAsBytes

protected byte[] getContentAsBytes()
                            throws java.io.UnsupportedEncodingException,
                                   java.io.IOException
Throws:
java.io.UnsupportedEncodingException
java.io.IOException

equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()

toString

public java.lang.String toString()


Copyright © 2003-2004 Diaspar Software Services, Inc.. All Rights Reserved.