php.java.servlet.fastcgi
Class IOFactory

java.lang.Object
  extended by php.java.servlet.fastcgi.IOFactory

public abstract class IOFactory
extends java.lang.Object

In-/OutputStream factory. Override this class if you want to use your own streams.

Author:
jostb

Constructor Summary
IOFactory()
           
 
Method Summary
abstract  php.java.servlet.fastcgi.Channel connect(ChannelFactory name)
          Create a new socket and connect it to the given host/port
 java.io.InputStream createInputStream()
          Create a new InputStream.
 java.io.OutputStream createOutputStream()
          Create a new OutputStream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOFactory

public IOFactory()
Method Detail

connect

public abstract php.java.servlet.fastcgi.Channel connect(ChannelFactory name)
                                                  throws ConnectException
Create a new socket and connect it to the given host/port

Parameters:
name - The channel name.
Returns:
The socket
Throws:
ConnectException

createInputStream

public java.io.InputStream createInputStream()
                                      throws ConnectionException
Create a new InputStream.

Returns:
The input stream.
Throws:
ConnectionException

createOutputStream

public java.io.OutputStream createOutputStream()
                                        throws ConnectionException
Create a new OutputStream.

Returns:
The output stream.
Throws:
ConnectionException