com.diasparsoftware.htmlunitx
Class InputStreamWebResponse
java.lang.Object
com.diasparsoftware.htmlunitx.TestableWebResponse
com.diasparsoftware.htmlunitx.InputStreamWebResponse
- All Implemented Interfaces:
- com.gargoylesoftware.htmlunit.WebResponse
- Direct Known Subclasses:
- FileSystemWebResponse
- public class InputStreamWebResponse
- extends TestableWebResponse
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 |
InputStreamWebResponse
public InputStreamWebResponse(java.net.URL url,
java.io.InputStream contentAsStream)
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.