org.apache.wicket.response
Class ByteArrayResponse

java.lang.Object
  extended by org.apache.wicket.request.Response
      extended by org.apache.wicket.response.ByteArrayResponse

public class ByteArrayResponse
extends Response

Response used to capture output as a byte array

Author:
igor.vaynberg

Constructor Summary
ByteArrayResponse()
          Constructor
ByteArrayResponse(Response original)
          Constructor
 
Method Summary
 String encodeURL(CharSequence url)
           
 byte[] getBytes()
           
 Object getContainerResponse()
           
 void reset()
           
 void write(byte[] array)
           
 void write(byte[] array, int offset, int length)
           
 void write(CharSequence string)
           
 
Methods inherited from class org.apache.wicket.request.Response
close, getOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayResponse

public ByteArrayResponse(Response original)
Constructor

Parameters:
original -

ByteArrayResponse

public ByteArrayResponse()
Constructor

Method Detail

getBytes

public byte[] getBytes()
Returns:
bytes

write

public void write(CharSequence string)
Specified by:
write in class Response
See Also:
Response.write(CharSequence)

reset

public void reset()
Overrides:
reset in class Response
See Also:
Response.reset()

write

public void write(byte[] array)
Specified by:
write in class Response
See Also:
Response.getOutputStream()

write

public void write(byte[] array,
                  int offset,
                  int length)
Overrides:
write in class Response

encodeURL

public String encodeURL(CharSequence url)
Specified by:
encodeURL in class Response

getContainerResponse

public Object getContainerResponse()
Specified by:
getContainerResponse in class Response


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.