org.glassfish.tyrus
Class WriterToAsyncTextAdapter
java.lang.Object
java.io.Writer
org.glassfish.tyrus.WriterToAsyncTextAdapter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class WriterToAsyncTextAdapter
- extends Writer
Simple Writer that writes its data to
an async sink.
- Author:
- Danny Coward (danny.coward at oracle.com)
|
Method Summary |
void |
close()
|
void |
flush()
|
void |
write(char[] chars,
int index,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WriterToAsyncTextAdapter
public WriterToAsyncTextAdapter(RemoteEndpoint re)
write
public void write(char[] chars,
int index,
int len)
throws IOException
- Specified by:
write in class Writer
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Specified by:
flush in class Writer
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in class Writer
- Throws:
IOException
Copyright © 2012. All Rights Reserved.