Package org.apache.wicket.response
Class ByteArrayResponse
java.lang.Object
org.apache.wicket.request.Response
org.apache.wicket.response.ByteArrayResponse
Response used to capture output as a byte array
- Author:
- igor.vaynberg
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorByteArrayResponse
(org.apache.wicket.request.Response original) Constructor -
Method Summary
Modifier and TypeMethodDescriptionencodeURL
(CharSequence url) byte[]
getBytes()
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
-
Constructor Details
-
ByteArrayResponse
Constructor- Parameters:
original
-
-
ByteArrayResponse
public ByteArrayResponse()Constructor
-
-
Method Details
-
getBytes
- Returns:
- bytes
-
write
- Specified by:
write
in classorg.apache.wicket.request.Response
- See Also:
-
Response.write(CharSequence)
-
reset
- Overrides:
reset
in classorg.apache.wicket.request.Response
- See Also:
-
Response.reset()
-
write
- Specified by:
write
in classorg.apache.wicket.request.Response
- See Also:
-
Response.getOutputStream()
-
write
- Specified by:
write
in classorg.apache.wicket.request.Response
-
encodeURL
- Specified by:
encodeURL
in classorg.apache.wicket.request.Response
-
getContainerResponse
- Specified by:
getContainerResponse
in classorg.apache.wicket.request.Response
-