Class ByteArrayResponse


  • public class ByteArrayResponse
    extends org.apache.wicket.request.Response
    Response used to capture output as a byte array
    Author:
    igor.vaynberg
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String encodeURL​(java.lang.CharSequence url)  
      byte[] getBytes()  
      java.lang.Object getContainerResponse()  
      void reset()  
      void write​(byte[] array)  
      void write​(byte[] array, int offset, int length)  
      void write​(java.lang.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​(org.apache.wicket.request.Response original)
        Constructor
        Parameters:
        original -
      • ByteArrayResponse

        public ByteArrayResponse()
        Constructor
    • Method Detail

      • getBytes

        public byte[] getBytes()
        Returns:
        bytes
      • write

        public void write​(java.lang.CharSequence string)
        Specified by:
        write in class org.apache.wicket.request.Response
        See Also:
        Response.write(CharSequence)
      • reset

        public void reset()
        Overrides:
        reset in class org.apache.wicket.request.Response
        See Also:
        Response.reset()
      • write

        public void write​(byte[] array)
        Specified by:
        write in class org.apache.wicket.request.Response
        See Also:
        Response.getOutputStream()
      • write

        public void write​(byte[] array,
                          int offset,
                          int length)
        Specified by:
        write in class org.apache.wicket.request.Response
      • encodeURL

        public java.lang.String encodeURL​(java.lang.CharSequence url)
        Specified by:
        encodeURL in class org.apache.wicket.request.Response
      • getContainerResponse

        public java.lang.Object getContainerResponse()
        Specified by:
        getContainerResponse in class org.apache.wicket.request.Response