JBoss Remoting 3.1.0.Beta1

org.jboss.remoting3.stream
Class OutputStreamHandlerFactory

java.lang.Object
  extended by org.jboss.remoting3.stream.OutputStreamHandlerFactory
All Implemented Interfaces:
StreamHandlerFactory<OutputStream,org.jboss.xnio.channels.StreamChannel>

public final class OutputStreamHandlerFactory
extends Object
implements StreamHandlerFactory<OutputStream,org.jboss.xnio.channels.StreamChannel>

A handler factory for automatic forwarding of output streams.


Constructor Summary
OutputStreamHandlerFactory()
           
 
Method Summary
 StreamHandler<OutputStream,org.jboss.xnio.channels.StreamChannel> createStreamHandler(OutputStream localInstance, StreamContext streamContext)
          Create a stream handler instance for a local object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamHandlerFactory

public OutputStreamHandlerFactory()
Method Detail

createStreamHandler

public StreamHandler<OutputStream,org.jboss.xnio.channels.StreamChannel> createStreamHandler(OutputStream localInstance,
                                                                                             StreamContext streamContext)
                                                                                      throws IOException
Create a stream handler instance for a local object.

Specified by:
createStreamHandler in interface StreamHandlerFactory<OutputStream,org.jboss.xnio.channels.StreamChannel>
Parameters:
localInstance - the local instance
streamContext - the stream context
Returns:
the stream handler for this type
Throws:
IOException - if an error occurs

JBoss Remoting 3.1.0.Beta1

Copyright © 2010 JBoss, a division of Red Hat, Inc.