Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server.io
Class OutputStreamWriteAdapter

java.lang.Object
  extended by org.jboss.errai.bus.server.io.AbstractByteWriteAdapter
      extended by org.jboss.errai.bus.server.io.OutputStreamWriteAdapter
All Implemented Interfaces:
ByteWriteAdapter

public class OutputStreamWriteAdapter
extends AbstractByteWriteAdapter

A simple wrapper implementation of ByteWriteAdapter which forwards all writes to the OutputStream specified when creating the adapter.

Author:
Mike Brock

Constructor Summary
OutputStreamWriteAdapter(OutputStream outputStream)
           
 
Method Summary
 void flush()
           
 void write(byte b)
           
 
Methods inherited from class org.jboss.errai.bus.server.io.AbstractByteWriteAdapter
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamWriteAdapter

public OutputStreamWriteAdapter(OutputStream outputStream)
Method Detail

write

public void write(byte b)
           throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.