|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AsyncIOWriterAdapter
org.atmosphere.util.ByteArrayAsyncWriter
public class ByteArrayAsyncWriter
An AsyncIOWriter backed by an ByteArrayOutputStream
| Constructor Summary | |
|---|---|
ByteArrayAsyncWriter()
|
|
| Method Summary | |
|---|---|
void |
close(AtmosphereResponse r)
No OPS |
ByteArrayOutputStream |
stream()
|
AsyncIOWriter |
write(AtmosphereResponse r,
byte[] data)
No OPS |
AsyncIOWriter |
write(AtmosphereResponse r,
byte[] data,
int offset,
int length)
No OPS |
AsyncIOWriter |
write(AtmosphereResponse r,
String data)
No OPS |
| Methods inherited from class org.atmosphere.cpr.AsyncIOWriterAdapter |
|---|
close, flush, flush, redirect, redirect, write, write, write, writeError, writeError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayAsyncWriter()
| Method Detail |
|---|
public AsyncIOWriter write(AtmosphereResponse r,
String data)
throws IOException
AsyncIOWriterAdapter
write in interface AsyncIOWriterwrite in class AsyncIOWriterAdapterdata - the WebSocket message
IOException
public AsyncIOWriter write(AtmosphereResponse r,
byte[] data)
throws IOException
AsyncIOWriterAdapter
write in interface AsyncIOWriterwrite in class AsyncIOWriterAdapterdata - the WebSocket message
IOException
public AsyncIOWriter write(AtmosphereResponse r,
byte[] data,
int offset,
int length)
throws IOException
AsyncIOWriterAdapter
write in interface AsyncIOWriterwrite in class AsyncIOWriterAdapterdata - the WebSocket messageoffset - offset of the messagelength - length if the message
IOExceptionpublic ByteArrayOutputStream stream()
public void close(AtmosphereResponse r)
AsyncIOWriterAdapter
close in interface AsyncIOWriterclose in class AsyncIOWriterAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||