|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.web.rendering.ByteArrayBody
public class ByteArrayBody
A response body defined by a byte array.
Constructor Summary | |
---|---|
ByteArrayBody(byte[] bytes)
Constructor. |
Method Summary | |
---|---|
void |
write(java.io.OutputStream os,
java.nio.charset.Charset charset,
Context context,
TextProcessor processor)
Write the body to an OutputStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteArrayBody(byte[] bytes)
bytes
- The body data.Method Detail |
---|
public void write(java.io.OutputStream os, java.nio.charset.Charset charset, Context context, TextProcessor processor) throws java.io.IOException
OutputStream
.
write
in interface Body
os
- The stream to which the body will be written.charset
- The character set for the output stream.context
- The template context.processor
- A text processor for generating markup, etc.
java.io.IOException
- - if writing to the output stream fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |