JBoss Remoting 3.1.0.Beta1

org.jboss.remoting3.stream
Class InputStreamHandlerFactory

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

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

A handler factory for automatic forwarding of input streams.


Constructor Summary
InputStreamHandlerFactory()
           
 
Method Summary
 StreamHandler<InputStream,org.jboss.xnio.channels.StreamChannel> createStreamHandler(InputStream 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

InputStreamHandlerFactory

public InputStreamHandlerFactory()
Method Detail

createStreamHandler

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

Specified by:
createStreamHandler in interface StreamHandlerFactory<InputStream,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.